Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding an extra option canvasimg that lets the user of the library pass a canvas with the image preloaded, this allows for instance to get a rotated picture from a cellphone and display it correctly based on the EXIF header.
A little context, this cordova plugin uses base64 encoded images instead of files, on a Samsung A5 2017 (8 cores, 3GB RAM) rotating a 16MP images takes something like 5 seconds because and all of this time is been spent on generating the base64 string after rotation. I have a change I'm gonna submit to them which is instead of stripping off the rotation exif header and rotate on Java, just add the header and let the browser rotate, as it can use the GPU
With the change to your package I can get a rotated image which I can zoom-in in near realtime.