Here you go.

Bill

--- Imaging-1.1.7/PIL/EpsImagePlugin.py 2009-10-31 17:44:11.000000000 -0700
+++ modImaging/PIL/EpsImagePlugin.py    2010-03-21 11:32:54.000000000 -0700
@@ -202,6 +202,12 @@
                         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"
 
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to