mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 09:44:31 +03:00
Merge pull request #20 from tomgross/master
Fixed reading of EPS images
This commit is contained in:
commit
9380599f04
|
@ -202,6 +202,10 @@ class EpsImageFile(ImageFile.ImageFile):
|
||||||
self.info[k[:8]] = k[9:]
|
self.info[k[:8]] = k[9:]
|
||||||
else:
|
else:
|
||||||
self.info[k] = ""
|
self.info[k] = ""
|
||||||
|
elif s[0] == '%':
|
||||||
|
# handle non-DSC Postscript comments that some
|
||||||
|
# tools mistakenly put in the Comments section
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
raise IOError, "bad EPS header"
|
raise IOError, "bad EPS header"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user