[Image-SIG] Q: resizing (smaller) with anti-aliasing

Joerg Baumann Joerg.Baumann@stud.informatik.uni-erlangen.de
Sat, 25 Mar 2000 15:39:39 +0100 (MET)


On Sat, 25 Mar 2000, Kingsley Turner wrote:

> Is there a way to scale an image (smaller) that includes some
> form of antialiasing?

  j=i.resize((80,100)) 
uses the NEAREST filter as default, like
  j=i.resize((80,100),Image.NEAREST)
With
  j=i.resize((80,100),Image.BILINEAR)
you get linear interpolation.
With
  j=i.resize((80,100),Image.BICUBIC)
you get cubic interpolation.

bye
  joerg

  Joerg Baumann       joerg.baumann@stud.informatik.uni-erlangen.de
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+  
  Beware of bugs in the above code; I have only proved it correct, 
  not tried it.
                  Don Knuth