diff --git a/PIL/EpsImagePlugin.py b/PIL/EpsImagePlugin.py index 1927b3227..837447bca 100644 --- a/PIL/EpsImagePlugin.py +++ b/PIL/EpsImagePlugin.py @@ -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"