[Image-SIG] Lanczos interpolation
Douglas Bagnall
douglas at paradise.net.nz
Wed Jun 3 03:57:52 CEST 2009
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
More information about the Image-SIG
mailing list