[Image-SIG] Bilinear filter: unexpected results for 50 percent resize

Bruce Sutherland bruces1 at gmail.com
Tue Jan 13 16:24:22 CET 2009


I forgot the source:

import Image

size = (8, 16)
halfsize = (size[0]/2, size[1]/2)
image = Image.open('original.png')
rgb = image.convert('RGB')
linear = rgb.resize(halfsize, Image.BILINEAR)
linear.save('pil_resize_linear.png')


More information about the Image-SIG mailing list