-
Notifications
You must be signed in to change notification settings - Fork 538
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
Prevent wrong orientation from EXIF data with Thumbor filters #235
Comments
@avario Do you have an example that I can try to reproduce so that we would think of the solution? |
@beomseoklee Here's an example of the automatic rotation effect: Here's a direct link to the original image: https://bouldermap.s3.amazonaws.com/D624927E-AC6D-4B4D-84BC-E833093EBAAC.jpg You can see that it has the correct orientation because the EXIF data for this file is intact. Here's a link to the image accessed through Serverless Image Handler: https://d2ahr1fgdkzi3r.cloudfront.net/fit-in/300x400/D624927E-AC6D-4B4D-84BC-E833093EBAAC.jpg You can see that it has been automatically rotated to the wrong orientation because the EXIF data has been stripped. |
@beomseoklee Any ideas on this? |
@avario I'm trying to experiment |
@beomseoklee Have you made any progress on this? I'd really like to get this deployed. If it's not going to be possible to use thumbor filters I can just look into using the an encoded edits list. |
@avario I'm preparing a new update including this issue. We are planning to release the new version in this month, but it can be delayed to the next month. If it's not possible to wait for you, it would be better to use the encoded edits list with |
@beomseoklee Do you have any news on when this update will be released? |
Thanks for waiting @avario |
Hello, |
I'm using the latest version of the serverless image handler (v6.2.5) and still face the issue. But this only occurs in Chrome, not in Safari for example. When using the |
Hi @simonkrol I created a new issue #537 |
When I access an image with orientation EXIF data, the output is often automatically rotated to an incorrect orientation. This seems to be a common issue: #220, #25
The current solution seems to be to include
"rotate": null
in the edits list. However, I'd prefer to access images using the Thumbor filters, so directly modifying the edit list isn't possible. Using anull
value in therotate
Thumbor filter also doesn't look like it's possible.A previous solution was to modify the
RESPECT_ORIENTATION
config value, however this doesn't look like it's supported using Sharp.I saw that Sharp supports a
PRESERVE_EXIF_INFO
config value. I tried to override this by setting a Lambda environment variable of the same name toTrue
, but this didn't have any effect. Perhaps this isn't the right way to set the config value.Any ideas would be greatly appreciated! It seems like this should just be the default behaviour...
The text was updated successfully, but these errors were encountered: