[Image-SIG] Trouble with resize antialias filter

Erlend Fuglum erlend@fuglum.net
Sun, 26 May 2002 18:59:45 +0200


Hi,

When trying to resize an image using the antialias filter I get the=20
following error:
Valueerror: unsupported resampling filter.

The code in question is this:

inputPic =3D Image.open(image)
factor =3D (float(thumbWidth)/inputPic.size[0])
thumbHeight =3D int(inputPic.size[1]*factor)
outputPic =3D inputPic.resize((thumbWidth, thumbHeight), 1)

I have no idea why this shouldn't work. If I omit choosing a filter I get=20
no error, but the quality is not the best.

If someone gets this better than me, I sure would appreciate some help!

Have a shiny, happy day!

=E6Lenn