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
Open an image with Pillow and save it with its exif data.
What did you expect to happen?
The content of the exif field InteropVersion must be the same in both files.
What actually happened?
The type of InteropVersion field value is set to TiffTags.BYTE (1) by Pillow where it should be of type TiffTags.UNDEFINED (7) to conform to standard. Some software might rely on that field to assess the validity of the file.
fromPILimportImage#open a jpeg imageim=Image.open("original.jpg")
# save it with original parameters, but it doesn't change the problem to use default valuesim.save("copy.jpg", exif=im.getexif(), quality=95, progressive=True, subsampling="4:4:4")
Original image:
Result image:
Extract of the EXIF data from the original file (using exiftool -D -s original.jpg):
What did you do?
Open an image with Pillow and save it with its exif data.
What did you expect to happen?
The content of the exif field
InteropVersion
must be the same in both files.What actually happened?
The type of
InteropVersion
field value is set toTiffTags.BYTE
(1) by Pillow where it should be of typeTiffTags.UNDEFINED
(7) to conform to standard. Some software might rely on that field to assess the validity of the file.What are your OS, Python and Pillow versions?
Original image:
Result image:
Extract of the EXIF data from the original file (using
exiftool -D -s original.jpg
):In the saved file (using
exiftool -D -s copy.jpg
):The text was updated successfully, but these errors were encountered: