[Image-SIG] PIL resize with aspect ratio?
Count László de Almásy
calmasy at gmail.com
Thu Jan 5 23:35:45 CET 2006
I'm actually using resize() instead of thumbnail() in the code I'm writing,
but I think the idea is the same, right?
I'm color blind, so it's not as easy for me as most to distinguish such
fine details by eye, but I think I'll use ANTIALIAS.
On 1/5/06, Chris Cogdon <chris at cogdon.org> wrote:
> 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