PIL>>> Image.open('f.GIF').save('f.jpg', 'JPEG') # ?

Jeff Kunce kuncej at mail.conservation.state.mo.us
Tue May 23 16:16:43 CEST 2000


> >>> im = Image.open('sample.gif')
> >>> im.save('sample.jpg', 'jpeg')
> Traceback (innermost last):

im = Image.open('sample.gif')
im = im.convert('RGB')
im.save('sample.jpg','jpeg')

   --or--

Image.open('sample.gif').convert('RGB').save('sample.jpg','jpeg')







More information about the Python-list mailing list