[Image-SIG] resize a image

Fei Xu feix@rutchem.rutgers.edu
Fri, 9 May 2003 11:42:45 -0400

HI! Everyone: I tried to resize an image but failed. The script and error
messages are shown as below: 

>>> import Image 
>>> im = Image.open('pd0001_contype.jpeg').resize((400,400),'NEAREST').save('pd0001_contype.thumnail',
  Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.2/site-packages/PIL/Image.py", line 684, in 
    raise ValueError("unknown resampling filter") ValueError: unknown
resampling filter

The filter argument can be nearest, bilinear or bicubic. I tried and got
same message. 
What should I do?
Thanks a lot!