Re: language lawyer needed: PIL fails on Adobe Illustrator EPS...

Bill Janssen <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
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  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.