[Image-SIG] PIL resize with aspect ratio?

Chris Cogdon chris at cogdon.org
Thu Jan 5 23:28:31 CET 2006

On Jan 5, 2006, at 14:25, Count László de Almásy wrote:

> Thanks so much, I had missed the 'quality' attribute.  BTW, is
> 'ANTIALIAS' the best choice for what I want to do?  I noticed the
> docs mention the following:
> "The BILINEAR and BICUBIC filters use a fixed input environment, and
> are best used for scale-preserving geometric transforms and upsamping"
> which seems like it suits rescaling while maintaining aspect ratio as
> I am doing.

I've found that ANTIALIAS results in much better thumbnails, and will 
probably produce better looking results when scaling down. The others I 
suspect will work well when scaling up.

Best way... try it out and see :)

    ("`-/")_.-'"``-._        Chris Cogdon <chris at cogdon.org>
     . . `; -._    )-;-,_`)
    (v_,)'  _  )`-.\  ``-'
   _.- _..-_/ / ((.'
((,.-'   ((,/   fL

More information about the Image-SIG mailing list