PIL(LOW) - What am I missing?

kai.peters at gmail.com kai.peters at gmail.com
Thu Mar 26 00:46:35 EDT 2015


On Wednesday, 25 March 2015 20:54:21 UTC-7, kai.p... at gmail.com  wrote:
> I create an image as per:
> 
>     img  = Image.new('1', (1024, 1280), 1)
> 	
> I then draw on it and do:
> 
>     imagedata = list(img.getdata())
>     print len(imagedata)
> 
> This gives me 1228800 instead of the expected 1310720 (1024 * 1280)	
> - any ideas what I am missing?


Please disregard - typo after a long night :(
> 
> As always, any help much appreciated.
> 
> Kai




More information about the Python-list mailing list