Added ImageOps auto_transpose#4062
Conversation
|
I guess, correcting the orientation of TIFF images as per Orientation tag should not in any way be linked to processing the EXIF tag. TIFF Orientation is a much more technical thing, like byte order or compression and should be applied automatically to all TIFF images that have Orientation differing from 1. It is a baseline tag, and it is not up to the user to decide whether they want to read TIFF images in the correct orientation just like it is not up to the user to decide whether they want to decode LZW compressed TIFFs or leave them compressed. (But some applications like the current version of Pillow simply do not support orientations other than 1, like some applications do not support some compressions). And whether to apply EXIF orientation is up to the user or the developer. This correction should be initiated by a separate procedure call. (Like it is already implemented in Pillow). |
|
Okay. See #4063 instead |
Resolves #4053
The issue points out in addition to the EXIF orientation tag, there is also a TIFF orientation tag - https://www.awaresystems.be/imaging/tiff/tifftags/orientation.html
Unfortunately, the auto transposing method for EXIF orientation was named
exif_transpose, so I'm not able to just bundle the handling of the TIFF tag into that. So this PR addsauto_transposeto transpose either the EXIF or the TIFF orientation tag.