-
Notifications
You must be signed in to change notification settings - Fork 40
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
EXIF rotation information lost #11
Comments
Hey @laurivosandi! It's been a while you reported this issue but I couldn't understand it. Do you think this issue on Neomad and this one from the Medium Editor Plugin could be also for the same reason? |
Hi, yes this looks exactly like the same issue |
The point is JPEG data orientation doesn't have to match the orientation it is supposed to be shown in. EXIF tags show you the intended orientation. |
Some hint based on the current library used in Imagefit: https://stackoverflow.com/a/6218425/328117 |
Wondering if we should reorient the picture or just pass EXIF metadata. Any opinion @laurivosandi ? |
Hi,
it seems JPEG images with EXIF rotation info are messed up after resizing. This can be easily fixed by rotating the image after resizing based on the information found in EXIF tags:
Also to speed up resizing/rotation you could take a look at epeg at https://github.com/mattes/epeg
The text was updated successfully, but these errors were encountered: