#getFilePreview doesn’t take into account exif rotation and returns rotated images

3 messages · Page 1 of 1 (latest)

grim valley
#

I saw on GitHub this issue apparently was fixed back in 2022 but I still see it happening. Just uploading any jpg image that has exif rotation to storage. You will notice the image is previewed incorrectly and getFilePreview returns incorrectly rotated images.

Anyone has a workaround or fix ?

https://github.com/appwrite/appwrite/issues/2696

GitHub

👟 Reproduction steps When I take a picture with my phone (iPhone) and upload it to the storage, either with the console, either with the sdk method, the image returned by the PREVIEW link is incorr...

fast beacon
grim valley