[Image-SIG] Re: convert png to eps

Fredrik Lundh fredrik at pythonware.com
Tue Sep 21 13:02:21 CEST 2004


"arjen" <arjen.dijkstra at hccnet.nl> wrote:

> 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?

this might help:

    import Image
    im=Image.open("logo_nosonis.png")

    if im.mode not in ("L", "RGB", "CMYK"):
        im = im.convert("RGB")

    im.save("logo_nosonis.eps")

</F> 





More information about the Image-SIG mailing list