Opening Photoshop EPS with PIL?

O

oliver

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:
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
 
O

oliver

.eps ==> vector ; not bitmap

I was under the impression that .eps could be opened with PIL (and by
the way, their contents are actually raster (but with a work path
which shouldn't be displayed anyway)

Any ideas?
 
D

Dennis Lee Bieber

I was under the impression that .eps could be opened with PIL (and by
the way, their contents are actually raster (but with a work path
which shouldn't be displayed anyway)
Depends on the source of the EPS... Encapsulated PostScript could be
nothing but a program that generates a drawing using random numbers each
time it is opened.
--
Wulfraed Dennis Lee Bieber KD6MOG
(e-mail address removed) (e-mail address removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (e-mail address removed))
HTTP://www.bestiaria.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,698
Latest member
LydiaHalle

Latest Threads

Top