Resizing of PIL images
Peter Hansen
peter at engcorp.com
Wed Dec 21 11:32:26 EST 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!
See the docs on transform(). From the sounds of it, if resize() won't
stretch something (it's own docs don't make that clear), then
transform() with appropriate arguments will.
-Peter
More information about the Python-list
mailing list