[Image-SIG] Read EPS (bitmap and vector), TIFF and PSD on windows

Stefano Masini stefano at pragma2000.com
Thu Sep 1 17:25:12 CEST 2005


On 9/1/05, Fredrik Lundh <fredrik at pythonware.com> wrote:
> I'm not sure I see the connection -- the EPS plugin simply looks for
> EPS headers, and if found, tells ghostscript to render it to a suitable

Here's what I got:

File "/usr/lib/python2.4/site-packages/PIL/EpsImagePlugin.py", line
75, in Ghostscript
    im = Image.core.open_ppm(file)
IOError: error when accessing file

Then I figured that for some reason gs was failing to write the
temporary file called "file".
So I printed the gs command line invocation, that looks like this:

gs -q -g142x155 -dNOPAUSE -dSAFER -sDEVICE=ppmraw
-sOutputFile=/tmp/tmpNJ2UG_ - >/dev/tty 2>/dev/tty

I tried to figure out if there could be something wrong. Since I don't
know ghostscript very well, I typed man gs, and got around a bit.
Enough to discourage me to go any further! ;)

So I though gs must be a complicated beast... I'm wondering if I'm
doing something wrong or my image is simply awful.

> (feel free to mail me a copy of your worst-case EPS file, btw.  my
> internal PIL test suite can never have too many samples...).

Sure! Thanks a lot.

stefano


More information about the Image-SIG mailing list