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
The photo can be opened in a browser and by IrfanView (v4.53, 64bit, Windows 7).
What actually happened?
fromPILimportImageImage.open("test.jpg")
File "testFIL.py", line 3, in <module>
im = Image.open("test.jpg")
File "/home/fe/stallenberger/anaconda3/envs/pillow/lib/python3.8/site-packages/PIL/Images.py", line 2818, in open
raise IOError("cannot identify image file %r" % (filename if filename else fp))
OSError: cannot identify image file 'test.jpg'
What are your OS, Python and Pillow versions?
OS: Scientific Linux release 7.7 (Nitrogen)
Python: 3.8.0
Pillow: 6.2
Image file
For this particular image, the PhotoShop metadata (APP13 segment) seems to be corrupted since it ends with "8BIM". Normally, this tag introduces an Image Resource Block but in this particular file there is no data following in the APP13 segment. Thus, parsing this block of metadata and therefore opening the image fails.
Opening the image in Pillow 5.3.0 works well, since this version ignores the APP13 segment.
The text was updated successfully, but these errors were encountered:
radarhere
changed the title
Pillow 6.2 fails to open JPEG image with corrupted PhotoShop metadata
Pillow 6.2 fails to open JPEG image with corrupted Photoshop metadata
Nov 28, 2019
What did you do?
Tried to open a .jpg image with PIL.
What did you expect to happen?
The photo can be opened in a browser and by IrfanView (v4.53, 64bit, Windows 7).
What actually happened?
What are your OS, Python and Pillow versions?
Image file
For this particular image, the PhotoShop metadata (APP13 segment) seems to be corrupted since it ends with "8BIM". Normally, this tag introduces an Image Resource Block but in this particular file there is no data following in the APP13 segment. Thus, parsing this block of metadata and therefore opening the image fails.
Opening the image in Pillow 5.3.0 works well, since this version ignores the APP13 segment.
The text was updated successfully, but these errors were encountered: