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] tools: fix orientation of image with EXIF orientation tag #37448

Closed
wants to merge 1 commit into from

Commits on Oct 11, 2019

  1. [FIX] tools, base: fix orientation of image with EXIF orientation tag

    Before this commit, some images would display incorrectly orientated.
    
    This typically happens for images taken from a non-standard orientation
    by some phones or other devices that are able to report orientation.
    
    The specified transposition is applied to the image before all other
    operations, because all of them expect the image to be in its final
    orientation, which is the case only when the first row of pixels is the top
    of the image and the first column of pixels is the left of the image.
    
    Moreover the EXIF tags will not be kept when the image is later saved, so
    the transposition has to be done to ensure the final image is correctly
    orientated.
    seb-odoo committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    b3b5566 View commit details
    Browse the repository at this point in the history