[Image-SIG] need to covert from gif to jpeg

Fredrik Lundh fredrik@pythonware.com
Fri, 11 Dec 1998 11:01:32 +0100


>using the 1.4 version of the compiled python with tk and pil

if you can, get a more recent version!

> im = Image.open(infile)
> print im.format, "%dx%d" % im.size, im.mode
> im.save(outfile, ")

PIL usually avoids implicit mode conversions; in this
case, you have to spell it out yourself:

    im.convert("RGB").save(outfile)

Cheers /F
fredrik@pythonware.com
http://www.pythonware.com