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
TL;DR
Issue: Uploaded jpg images with exif rotation are previewed incorrectly and getFilePreview returns rotated images.
Developers have noticed that despite the issue being marked as fixed, it still persists. If you encounter this problem, try to find a workaround or fix it by checking the latest updates and comments on the GitHub issue page: https://github.com/appwrite/appwrite/issues/2696