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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel Mark

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

    hello all:

    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.



    Thank you
    -Daniel

  • Fredrik Lundh

    #2
    Re: How to save High Quality JPG image by setting Image module fromPIL

    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(filenam e, 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:



    might also be a good idea.

    </F>

    Comment

    Working...