resize vs. thumbnail return values
Fredrik Lundh
effbot at telia.com
Thu May 18 12:56:41 EDT 2000
Dinu C. Gherman <gherman at darwin.in-berlin.de> wrote:
> I wonder what the reasoning is behind making a difference
> in the return value of Image.resize() and Image.thumbnail()?
> resize() returns self while thumbnail returns None.
the thumbnail modifies the image in place, while resize returns a
resized copy of the image, and leaves the original image intact.
why things are done this way is explained in the last section
in the tutorial:
http://www.pythonware.com/library/pil/handbook/intro01.htm
</F>
<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->
More information about the Python-list
mailing list