-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXIF Orientation metadata option does not affect when drawing image on canvas. #1670
Comments
@cherevichka Yes I'm having the same problem on Windows and Linux! Did you find a workaround by any chance? |
@cherevichka I'm now using the 'jpeg-autorotate' package to fix images before I use canvas.loadImage. It works, but it is not optimal :-) |
@willemmulder I use the exif-parser package to determine the orientation of the image, and then rotate the image when needed.
|
@cherevichka Hello, would you tell me how to do in code to resolve this problem? |
Could anyone confirm that the browsers canvases does indeed rotate the image according to exif data when using |
@LinusU yes, it works as expected in browser |
Hey, the change looks good, we would also like to have this change part of the new canvas version |
If the JPEG image has orientation metadata, the
drawImage
method draws an unrotated image.Steps to Reproduce
Download JPG image with orientation metadata:
Load the image with
loadImage
utility.Draw the image on canvas.
Expected:
Got:
Tested on MacOS, CentoOS.
Thanks!
The text was updated successfully, but these errors were encountered: