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
Image upload orientation data not taken into account #1162
Comments
I suspect this is due to rotation data on mobile not being applied? |
Be aware, some browsers will auto rotate the image for you, so if you add rotation to all images, you might end up with images being rotated twice. |
The 'soft' rotation in EXIF data can sometime be stripped away when manipulating images. sample image that will be rotated after upload |
We strip all EXIF data in the media uploader (on save, not on load), that might explain why browsers will not autorotate it and images are sideways. Seems we should probably call this to autorotate ourselves before stripping that data https://libvips.github.io/pyvips/vimage.html#pyvips.Image.autorot |
@Hassan-Mallah: do you want to have a look at this one? It's not in the backend, it's in the media container, in |
@aapeliv sure, i'll check it |
Subject: Insert Profil Picture
Description:
I chose a picture as my profile picture. I'm using Firefox on an android device
Results:
There was no preview picture, and when I accepted the picture, it often was orientated in apperently random directions.
Backend version: develop-bf9caa27
Frontend version: develop-bf9caa27
User Agent: Mozilla/5.0 (Android 11; Mobile; rv:88.0) Gecko/88.0 Firefox/88.0
Page: https://app.couchers.org/
User (spoofable): leo (506)
The text was updated successfully, but these errors were encountered: