[Image-SIG] bug in PIL rotate?

Mathieu Galtier mathieu.galtier at googlemail.com
Tue Sep 8 16:25:30 CEST 2009


Hello,

am I right to think that the rotate function of PIL 1.1.6 is broken?

Try this simple example:

import Image
import numpy as np
tab = np.random.rand(100).reshape(10,10)
im = Image.fromarray(tab)
assert(im == im.rotate(0))

I went a bit further and it seems that rotate translates the image of 
one pixel or so.

Cheers
Mathieu


More information about the Image-SIG mailing list