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
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/share/venv-pillow/lib/python3.10/site-packages/PIL/ImageOps.py", line 641, in exif_transpose
exif_image.info["exif"] = exif.tobytes()
File "/share/venv-pillow/lib/python3.10/site-packages/PIL/Image.py", line 3798, in tobytesreturnb"Exif\x00\x00"+ head + ifd.tobytes(offset)
File "/share/venv-pillow/lib/python3.10/site-packages/PIL/TiffImagePlugin.py", line 898, in tobytes
data = ifd.tobytes(offset)
File "/share/venv-pillow/lib/python3.10/site-packages/PIL/TiffImagePlugin.py", line 898, in tobytes
data = ifd.tobytes(offset)
File "/share/venv-pillow/lib/python3.10/site-packages/PIL/TiffImagePlugin.py", line 907, in tobytes"<table: %d bytes>"%len(data) iflen(data) >=16elsestr(values)
TypeError: object of type 'IFDRational' has no len()
What did you do?
Ran
ImageOps.exif_transpose
on this image: https://i1.sndcdn.com/avatars-000133622422-vmk8sz-original.jpgWhat did you expect to happen?
The image to be transposed
What actually happened?
A TypeError exception was raised:
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: