Resizing of PIL images

2005-12-21 Thread Tuvas
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

Re: Resizing of PIL images

2005-12-21 Thread Fredrik Lundh
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

Re: Resizing of PIL images

2005-12-21 Thread Peter Hansen
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

Re: Resizing of PIL images

2005-12-21 Thread Fredrik Lundh
Peter Hansen wrote: 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) resize resizes the image to the given size. thumbnail (which is an in-place operation) doesn't; it creates an image no larger than the given size.

Re: Resizing of PIL images

2005-12-21 Thread Peter Hansen
Fredrik Lundh wrote: Peter Hansen wrote: 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) resize resizes the image to the given size. thumbnail (which is an in-place operation) doesn't; it creates an image no

Re: Resizing of PIL images

2005-12-21 Thread Tuvas
I used thumbnail originally, and am using resize now. Perhaps it has to do with the image type (That is based on strings), but the resize function just didn't do it for me. No idea why... Oh well, probably just a problem for me, but, I've found a way around it, for the time being. --