[Image-SIG] PIL 1.1.3: putdata with "I" mode images

Michael Volkmer volkmer@mpi-cbg.de
Thu, 25 Apr 2002 13:27:56 +0200

Anyone uses  putdata with "I" mode images ? 
Everytime I try to put the data back to the image I get the following error:

 >Traceback (most recent call last):
 > File "./data_test.py", line 9, in ?
 >  File "/usr/lib/python2.2/site-packages/PIL/Image.py", line 661, in 
 >    self.im.putdata(data, scale, offset)
 >TypeError: unrecognized image mode

Even applying putdata after getdata from the same image without any 
changes doesn't work.
My workaround is  to use getpixel/putpixel but this becomes really slow.
PIL version is 1.1.3

M. Volkmer