Open cherevichka opened 4 years ago
@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.
It works, but it is not optimal :-)
@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 drawImage
?
@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!