Opening Photoshop EPS with PIL?



Hey Everyone,

I am trying to get PIL to open some EPS files I have (Photoshop EPS,
whatever the difference is). I'm trying to use PIL to do this, but
when I run it, the following happens:

from PIL import Image, ImageOps
Image.open('/flora.eps')
Traceback (most recent call last):
File "<console>", line 1, in ?
File "/opt/local/lib/python2.4/site-packages/PIL/Image.py", line
1741, in open
return factory(fp, filename)
File "/opt/local/lib/python2.4/site-packages/PIL/ImageFile.py", line
82, in __init__
self._open()
File "/opt/local/lib/python2.4/site-packages/PIL/EpsImagePlugin.py",
line 206, in _open
raise IOError, "bad EPS header"

I've never had any real trouble with PIL before (never used it for EPS
though). Can anyone offer any advice on this one? I'd be most
grateful.

Many Thanks Everyone,
Oliver Beattie

.



Relevant Pages

  • Re: Opening Photoshop EPS with PIL?
    ... I was under the impression that .eps could be opened with PIL (and by ... their contents are actually raster (but with a work path ...
    (comp.lang.python)
  • Re: Is Adobe violating their own standards
    ... Back to postscript, since the release of the CS suite of programs by ... I can not import EPS files created in CS programs into CorelDraw ...
    (comp.publish.prepress)
  • Re: Mac/PC problems
    ... What are .wmf or .emf graphics and how are they created? ... If I export a Quark file to eps, open in illustrator, and re-save as an ... > EPS files are problematic in word, ...
    (microsoft.public.mac.office.word)
  • Re: Cannot link EPS graphics with Japanese font(s) to Word XP or Word
    ... What is the error message? ... Adobe Illustrator EPS files and Word have long been a bit problematic. ... What language format is set for the EPS and in the document you're using? ...
    (microsoft.public.word.drawing.graphics)
  • Re: Linked images in PDFs
    ... Besides the linking issue that others have mentioned, Illustrator ... isn't a generic EPS editor any more than it's a pdf editor. ... EPS files beyond place them for adding vector objects, ...
    (comp.publish.prepress)