[Image-SIG] Re: Optimizing PNGs in PIL
Mikael Olofsson
mikael at isy.liu.se
Fri Nov 5 16:07:09 CET 2004
Hi Fredrik,
you corrected me:
> im.save('c:/foo/bar/baz.png', options='optimize')
> should be
> im.save('c:/foo/bar/baz.png', optimize=1)
Thank you! I expected that I was in error and not PIL. Now the file does get
smaller, even though not as small as it gets by saving as in Gimp or XnView
(from 126kB to 119kB compared to 81kB and 89kB).
Regards
/Mikael Olofsson
Universitetslektor (Associate professor)
Linköpings universitet
-----------------------------------------------------------------------
E-Mail: mikael at isy.liu.se
WWW: http://www.dtr.isy.liu.se/en/staff/mikael
Phone: +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
-----------------------------------------------------------------------
Linköpings kammarkör: www.kammarkoren.com Vi söker tenorer och basar!
More information about the Image-SIG
mailing list