Modifying JPEG compression with PIL?

Fredrik Lundh effbot at telia.com
Tue May 16 13:24:30 EDT 2000


Dinu C. Gherman <gherman at darwin.in-berlin.de> wrote:
> Sorry, but I always fail to find appropriate PIL documenta-
> tion, so forgive me when I ask if using PIL I can take a JPEG 
> and increase its compression, so it will shrink in file size
> (and lose data as well)? If so, where can I read how to do 
> it?

im.save("foo.jpg", quality=50)

http://www.pythonware.com/library/pil/handbook/image.htm
http://www.pythonware.com/library/pil/handbook/formats.htm

</F>

<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->




More information about the Python-list mailing list