Resizing of PIL images

Fredrik Lundh fredrik at
Wed Dec 21 17:21:27 CET 2005

"Tuvas" wrote:

> I am seeking a way to resize a PIL image, even if the original is a
> smaller dimention than the new size. Resizing seems to only make an
> image smaller, and not larger. I have a 700x700 sized picture,
> sometimes that will display an image larger and other times smaller. Is
> there an easy way to do this, a command that I am missing from the
> library? Thanks!

newsize = (width, height)

im = im.resize(newsize)


More information about the Python-list mailing list