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 rotate JPG images with EXIF orientation tag #6768
Conversation
Signed-off-by: alxnkt <alxnkt@mail.ru>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for the front-end part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @alxnkt Nice work ! Could you add a small description of what the auto orientation does so users know about it in the settings view :)
Signed-off-by: alxnkt <alxnkt@mail.ru>
Done )) |
Description of what you did:
Feature for auto rotation of JPEG images having EXIF tag Orientation (fixes #5996). Some digital cameras and smartphones store images regardless of theirs orientation (landscaped of portrait). Information about orientation and mirroring is stored in EXIF meta-data.
rotate function of
sharp
library is used. An image is rotated if Orientation tag is defined. Otherwise it is uploaded "as is". The use of rotate implies the removal of the EXIF Orientation tag, if any.Feature can be turned on/off in Media Library settings. Left image uploaded with the feature turned on.