[Image-SIG] Re: im.save() Jpeg file Quality

Fredrik Lundh fredrik at pythonware.com
Thu Jun 24 14:41:01 EDT 2004


Alex Lovering wrote:

> The only reference to jpeg file quality is in the open method where
> there is an option to set 1 - 100 quality default is 75, this can be found
> on page 68.
>
> I'm not a great programmer and I may be missing something obvious,
> how do I get a better save quality that 75 on the im.save() method?

you're missing the "The save method supports the following options" line just
before the quality option (yes, it's there in the PDF, but it's easy to miss).  this
should work:

    im.save(filename, quality=90)

</F>






More information about the Image-SIG mailing list