Problems with BILINEAR/BICUBIC filters in PIL

Tim Fitzpatrick tim at lucurum.com
Thu Jul 3 23:39:33 CEST 2003


Hi all

I'm fairly new to Python with PIL and I'm having some problems with the 
BILINEAR/BICUBIC filters when rotating and transforming images.

If I use resize() with NEAREST, BILINEAR and BICUBIC I can clearly see 
the difference in the filters.

But if I use rotate() or transform() then there is no difference, and 
they all look like NEAREST filtering.

Any ideas as to what I am doing wrong?

I am testing with a simple, small BMP image, so the mode is RGB.

I'm running Python 2.2.2 on Windows with PIL 1.1.4.

Help appreciated,

Tim





More information about the Python-list mailing list