[Image-SIG] language lawyer needed: PIL fails on Adobe Illustrator EPS...

Bill Janssen janssen at parc.com
Sun Mar 21 19:37:31 CET 2010


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"
 


More information about the Image-SIG mailing list