faqts : Computers : Programming : Languages : Python : Common Problems : Images

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 27 people (26%) answered Yes
Recently 2 of 10 people (20%) answered Yes

Entry

How can I save a GIF file in JPEG format?

May 24th, 2000 06:26
unknown unknown, Greg Landrum


Use the convert method of the Image:

>>> from PIL import Image 
>>> Image.open('prev.gif').convert('RGB').save('prev.jpg')