How to save High Quality JPG image by setting Image module from PIL

Fredrik Lundh fredrik at pythonware.com
Mon Sep 25 13:59:58 EDT 2006


Daniel Mark wrote:

> I am using Image module from PIL to save created image as JPG format.
> 
> Is there any option I could set for function Image.save so that the
> stored image will have the highest quality.

something like

     im.save(filename, quality=90)

should do the trick.

if you want to play with the quality setting, reading the "jpeg quality 
100 is overkill" part of this post:

     http://article.gmane.org/gmane.comp.python.image/115/match=overkill

might also be a good idea.

</F>




More information about the Python-list mailing list