[Image-SIG] Resizing Photos

Florian Höch lists+Image_SIG at hoech.org
Wed Apr 22 21:29:41 CEST 2009


the anti-alias filter gives best results imho.

import PIL

yourimage.resize((w, h), PIL.Image.ANTIALIAS))


Florian Höch

Paul Johnston schrieb:
> Hi,
> I'm currently using PIL to resize photos down to a thumbnail. Something 
> I've noticed though, is that whatever software Facebook use too do the 
> same, produces better-quality thumbnails.
> Are there any tweaks I can apply to PIL to get better resizing? Or any 
> idea what software FB may be using?
> Paul
> ------------------------------------------------------------------------
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig

More information about the Image-SIG mailing list