Change compression-rate on JPEG-files using PIL

Fredrik Lundh fredrik at pythonware.com
Thu Feb 6 12:50:47 EST 2003


Thomas Weholt wrote:
> Can anybody tell if it is possible to change the default compression-rate
> when saving JPEG-images using PIL? Didn't find any info regarding this in
> the docs at pythonware.

im.save("file.jpg", quality=80)

also see:
http://www.pythonware.com/library/pil/handbook/image-file-formats.htm

</F>







More information about the Python-list mailing list