Closed wsuser06 closed 2 years ago
I passed this hard coded value: var orientation = 1; In the rotate and transformCoordinate functions. This allows the rotation function to be bypassed, which then lets the browser do its image rotating on the canvas.
In April 2020, chrome and other modern browsers released a feature to enable image-orientation. Basically what this does is uses the photo's exif orientation, when present in an image, and orient the image on the html canvas to it’s correct rotation, therefore the function to rotate is rendered useless (because this browser feature is drawing the image canvas on its terms).