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

fix: optimizeImage respects jpeg exif orientation #2680

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

Conversation

taifok
Copy link

@taifok taifok commented Oct 13, 2022

Changes

Uploaded jpeg image with exif rotated orientation(eg. photo from mobile camera) was removed by sharp.toFormat. So the optimized image was rotated unintentionally.

sharp.rotate() will rotate the image according to exif orientation before the metadata is lost.

How Has This Been Tested?

Manually.

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.

None yet

1 participant