GithubHelp home page GithubHelp logo

Comments (8)

Noppey avatar Noppey commented on August 20, 2024 1

https://github.com/bthurlow/nativescript-imagecropper/blob/master/demo/app/main-view-model.ts

This demo-code broke when I used that in Angular (only changed some deprecated dependencies), after clicking the button for "takepicture" a second time.

When not cropping, taking the picture worked just fine. I don't have an exact reproduction example, as I kept trying to fix it.

from nativescript-imagecropper.

shiv19 avatar shiv19 commented on August 20, 2024 1

Update:
v3.0.0 was released now. It matches the Proplugins variant.
Please check the demo app once again to see the proper implementation.

I'm actively using this plugin and have had no issues with it so far.

the setTimeout part here is crucial to make it work on iOS, because the asset won't be immediately ready to be read by the plugin.

}, isAndroid ? 0 : 1000);

I've also added my service implementation to show you how to use it with proper loader and also support image uploading with compression.

hope this helps :)

Cheers!
Shiva <3

from nativescript-imagecropper.

shiv19 avatar shiv19 commented on August 20, 2024

Just run the things inside your .then block in a setTimeout @JWiseCoder

from nativescript-imagecropper.

JWiseCoder avatar JWiseCoder commented on August 20, 2024

I did. It still crashes without writing out an error. I even put a delay on each setTimeout, and it still crashed.

from nativescript-imagecropper.

JWiseCoder avatar JWiseCoder commented on August 20, 2024

I still haven't found any way to keep it from crashing. It has something to do with how the Activity is being closed. Not sure if it's something inside the uCrop library or something this plugin is doing.

Or could it be something like the native image in the ImageSource is linked to the cached image file on disk, which is getting deleted before it returns? Maybe it's not entirely in memory or something?

from nativescript-imagecropper.

Noppey avatar Noppey commented on August 20, 2024

My app crashes when I take another picture with nativescript-camera, after cropping the previous picture. I also tried setTimeouts everywhere, no help there.

Update: It seems I mixed up the angular template with the normal usage, when using the proper angular template, it works fine.

from nativescript-imagecropper.

JWiseCoder avatar JWiseCoder commented on August 20, 2024

@Noppey Can you elaborate on that? Do you have an example?

from nativescript-imagecropper.

shiv19 avatar shiv19 commented on August 20, 2024

Ok, after I'm back from holidays, I'll release the pro plugins version of this plugin to this public version. That is stable and I did the support for {N} 6 on it.

In the current public version, it wasn't me who made the upgrade to {N} 6 and as such I haven't been offering support for it lately.

After I release the proplugins verison to public, I'll notify here and from then I'll start supporting this plugin once again.

I understand that this is an important plugin and needs better support.

Expect a stable version to be released on or before Jan 3rd 2020. :)

Cheers

from nativescript-imagecropper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.