[Image-SIG] convert png to eps

arjen arjen.dijkstra at hccnet.nl
Tue Sep 21 11:49:55 CEST 2004

Hello all,

I want to convert a png file to eps with PIL. Searching with google got 
me the following example. But I got a Traceback. Could someone help me 
with this?



 >>> import Image
 >>> im=Image.open("logo_nosonis.png")
 >>> im.save("logo_nosonis.eps")

Traceback (most recent call last):
   File "<pyshell#5>", line 1, in -toplevel-
   File "C:\Python23\Lib\site-packages\PIL\Image.py", line 1145, in save
     SAVE[string.upper(format)](self, fp, filename)
   File "C:\Python23\Lib\site-packages\PIL\EpsImagePlugin.py", line 306, 
in _save
     raise ValueError, "image mode is not supported"
ValueError: image mode is not supported

More information about the Image-SIG mailing list