[Image-SIG] Re: resize a image

Fredrik Lundh fredrik@pythonware.com
Fri, 9 May 2003 18:33:55 +0200


>     im = Image.open('pd0001_contype.jpeg')
>     im.thumbnail((400,400),'NEAREST')
>     im.save('pd0001_contype.thumbnail', "JPEG")

oops.  better make that:

    im = Image.open('pd0001_contype.jpeg')
    im.thumbnail((400,400))
    im.save('pd0001_contype.thumbnail', "JPEG")

</F>