Skip to content

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

Merged
patzly merged 1 commit intopatzly:masterfrom
sbrunk:fix-image-rotation
Feb 21, 2025
Merged

Take into account exif rotation information when scaling images.#904
patzly merged 1 commit intopatzly:masterfrom
sbrunk:fix-image-rotation

Conversation

@sbrunk
Copy link
Copy Markdown
Contributor

@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.

@patzly patzly merged commit 4c17a42 into patzly:master Feb 21, 2025
@patzly
Copy link
Copy Markdown
Owner

patzly commented Feb 21, 2025

Thank you so much!

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.

2 participants