[Image-SIG] Trouble with resize antialias filter

Fredrik Lundh fredrik@pythonware.com
Thu, 6 Jun 2002 20:34:06 +0200


Erlend Fuglum wrote:

> The code in question is this:
> 
> inputPic = Image.open(image)
> factor = (float(thumbWidth)/inputPic.size[0])
> thumbHeight = int(inputPic.size[1]*factor)
> outputPic = inputPic.resize((thumbWidth, thumbHeight), 1)
>
> When trying to resize an image using the antialias filter I get the 
> following error:
> Valueerror: unsupported resampling filter.

what PIL version are you using?  the ANTIALIAS filter is only
supported in PIL 1.1.3 and later.

to check what version you're using, print the Image.VERSION
variable.

</F>