We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
exiftool
Exiftool generates orientation like this: <tiff:Orientation>8</tiff:Orientation>
<tiff:Orientation>8</tiff:Orientation>
Current code:
transposed_image.info["XML:com.adobe.xmp"] = re.sub( r'tiff:Orientation="([0-9])"', "", transposed_image.info["XML:com.adobe.xmp"], )
does not handle this situation.
The text was updated successfully, but these errors were encountered:
Just to note - this doesn't happen for every image that exiftool processes.
Here is some code to demonstrate.
import os from PIL import Image Image.new("RGB", (1, 1)).save("out.png") os.system("exiftool -orientation#=3 out.png") assert "XML:com.adobe.xmp" not in Image.open("out.png").info
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Exiftool generates orientation like this:
<tiff:Orientation>8</tiff:Orientation>
Current code:
does not handle this situation.
The text was updated successfully, but these errors were encountered: