[Image-SIG] PIL resize with aspect ratio?

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


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

> I'm actually using resize() instead of thumbnail() in the code I'm 
> writing,
> but I think the idea is the same, right?

yes. resize does much the same thing, but you have to control the new x 
and y values explicitly... you don't get the 'maintain geometry' that 
'thumbnail' gives you.


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



More information about the Image-SIG mailing list