-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
Auto rotation without any other modification #315
Comments
By default, images are automatically rotated based on its EXIF metadata, if available and the image is not properly oriented according to it. You can disable this behavior by passing the URL query param |
Thanks for your answer. But what I mean is that the image is only rotated without any other modification, so I do not want to resize etc. and only fix the orientation. Is there a way? So I mean something like an |
There is an endpoint specifically for that: |
But with that endpoint the |
The In the meanwhile, you might try getting the image info, and based on the returned Alternatively, you can try using the |
The More details here: https://github.com/h2non/imaginary#get--post-autorotate |
Great, thank you :) I gave it a try and it is able to fix a few rotations, but unfortunately not all of them. I used the images in repository for testing: https://github.com/recurser/exif-orientation-examples I saw that you implemented the autoration using the So I think it's worth waiting for the new libvips version and I just wanted to post this for your information. |
Cool, thanks! We will sure upgrade to libvips |
Thanks for the update! I just tested it again and it works like a charm. |
I would be great if there is an option/endpoint to fix the orientation of an image based on the EXIF data without modifying the image in any other way. The
rotate
endpoint works only if arotate
parameter is given and a 0-value does not work.Not sure, if I am missing something and this works already, but I didn't find it. I did not explore workarounds such as doing a resize that keeps the current size of the image (with auto-rotation), but this does not feel right anyway.
The text was updated successfully, but these errors were encountered: