[Image-SIG] Bug in Image.rotate method and documentation

Todd Reed todd at toddreed.name
Thu Apr 2 22:55:06 CEST 2009

I am using PIL 1.1.6, and found a trivial-to-fix bug in the  
Image.rotate method:

If the expand argument is True (1), then the resample argument is  
ignored. Line 1320 is:

             return self.transform((w, h), AFFINE, matrix)

and should be:

             return self.transform((w, h), AFFINE, matrix, resample)

I also noticed that the documentation incorrectly specifies the  
resample argument as filter.


-- Todd

More information about the Image-SIG mailing list