If you want the downsampling algorithm used by the Gimp and (I think)
Photoshop, try:
def stretch(im, size, filter=Image.NEAREST):
im.load()
im = im._new(im.im.stretch(size, filter))
return im
In 2005 I found it to be a few times quicker than ANTIALIAS resizing,
and the results were better from what I was doing.
(From http://mail.python.org/pipermail/image-sig/2005-May/003310.html)
Douglas
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig