Skip to content

Commit

Permalink
Merge pull request python-pillow#20 from tomgross/master
Browse files Browse the repository at this point in the history
Fixed reading of EPS images
  • Loading branch information
aclark4life committed Jun 12, 2012
2 parents 4aaf004 + 33e1ffe commit 9380599
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PIL/EpsImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ def _open(self):
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"

Expand Down

0 comments on commit 9380599

Please sign in to comment.