You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem occurs when selecting images with non default orientation (from camera for example). Cropper tries to rotate the image for viewing. Rendering the image to a rotated canvas and making an image from the canvas using a data: url.
Possible solutions
Instead of producing an intermediate image, rendering the source (blob:) image directly rotated onto the target canvas would probably fix the problem.
Or
Add an option to disable auto orientation correction and add rotation controls to the component.
The text was updated successfully, but these errors were encountered:
The problem occurs when selecting images with non default orientation (from camera for example). Cropper tries to rotate the image for viewing. Rendering the image to a rotated canvas and making an image from the canvas using a data: url.
To reproduce
To reproduce open the following image https://github.com/recurser/exif-orientation-examples/blob/master/Portrait_7.jpg in one of the demos with CSP header as img-src 'self' blob:;
You can use this plugin for quick testing from the browser: https://chrome.google.com/webstore/detail/csp-tester/ehmipebdmhlmikaopdfoinmcjhhfadlf
Possible solutions
Instead of producing an intermediate image, rendering the source (blob:) image directly rotated onto the target canvas would probably fix the problem.
Or
Add an option to disable auto orientation correction and add rotation controls to the component.
The text was updated successfully, but these errors were encountered: