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')
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to