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

AttributeError: 'int' object has no attribute 'encode' #6799

Closed
doublex opened this issue Dec 13, 2022 · 2 comments · Fixed by #6800
Closed

AttributeError: 'int' object has no attribute 'encode' #6799

doublex opened this issue Dec 13, 2022 · 2 comments · Fixed by #6800

Comments

@doublex
Copy link

doublex commented Dec 13, 2022

This image: rotateexif

Testcase:

import PIL.Image
with PIL.Image.open('/tmp/rotateexif.jpg') as img:
   PIL.ImageOps.exif_transpose( img )
@radarhere
Copy link
Member

The image has a GPSLongitudeRef tag that should be ASCII, but is instead SHORT.

I've created PR #6800 to handle this.

@doublex
Copy link
Author

doublex commented Dec 13, 2022

@radarhere
They are always that fast!

hugovk added a commit that referenced this issue Dec 29, 2022
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 a pull request may close this issue.

2 participants