[Image-SIG] how to use pil for a jpeg 90 compression?

Jim Tittsler jwt at onjapan.net
Mon Aug 11 23:23:35 CEST 2008


On Aug 12, 2008, at 07:09, Karsten Hiddemann wrote:

> Fredrik Lundh schrieb:
>> zhang chi wrote:
>>> I have 30 picture, and I wanna use PIL to compress them to jpeg  
>>> 90. Is there a function that can do that in PIL?
>> What does "30" and "90" refer to?
>
> I'd think that he refers to the "Quality" or "Compression Level" as  
> most image manipulation programs call it.

The save() method accepts a quality=90 keyword argument.



-- 
Jim Tittsler     http://www.OnJapan.net/      GPG: 0x01159DB6
Python Starship  http://Starship.Python.net/crew/jwt/
Mailman IRC      irc://irc.freenode.net/#mailman





More information about the Image-SIG mailing list