mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
fixed reading of EPS pictures
found in: http://www.mail-archive.com/image-sig@python.org/msg03054.html
This commit is contained in:
parent
9488cb1e53
commit
33e1ffe570
|
@ -202,6 +202,10 @@ class EpsImageFile(ImageFile.ImageFile):
|
|||
self.info[k[:8]] = k[9:]
|
||||
else:
|
||||
self.info[k] = ""
|
||||
elif s[0] == '%':
|
||||
# handle non-DSC Postscript comments that some
|
||||
# tools mistakenly put in the Comments section
|
||||
pass
|
||||
else:
|
||||
raise IOError, "bad EPS header"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user