By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,939 Members | 1,541 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,939 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Sep 25 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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....match=overkill

might also be a good idea.

</F>

Sep 25 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.