Skip to content
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

Take into account exif rotation information when scaling images. #904

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sbrunk
Copy link

@sbrunk sbrunk commented Jan 5, 2025

Thanks for this app! I've started using it recently and it's been a great experience so far.

The only issue I've run into so far is that when I try to upload photos from my camera, they are always rotated by 90 degrees. Looking at #877, this seems to happen for other users as well.

I looked into the code and it seems to happen during image scaling, because some photos are stored rotated with orientation information in the exif metadata. Here's an attempt to take that rotation information into account and optionally rotate during scaling.

Smoke tested on a Pixel 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant