You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Pillow to read the exif metadata of a jpg image
What did you expect to happen?
Expected the metadata to converted into bytes
What actually happened?
Issue in the tobytes() function reading the metadata
python3.9/site-packages/PIL/TiffImagePlugin.py", line 895, in tobytes
"<table: %d bytes>" % len(data) if len(data) >= 16 else str(values)
TypeError: object of type 'IFDRational' has no len()
Hi. This has already been resolved by #6890. If you upgrade to Pillow 9.5.0, your problem should be fixed.
radarhere
changed the title
Error reading metadata when using Image.getxif().tobytes()
Error reading metadata when using Image.getexif().tobytes()
May 25, 2023
What did you do?
Using Pillow to read the exif metadata of a jpg image
What did you expect to happen?
Expected the metadata to converted into bytes
What actually happened?
Issue in the tobytes() function reading the metadata
What are your OS, Python and Pillow versions?
a whited out 1x1 pixel image with the metadata that has this problem is attached below
The text was updated successfully, but these errors were encountered: