PIL(LOW) - What am I missing?

kai.peters at gmail.com kai.peters at gmail.com
Wed Mar 25 23:54:09 EDT 2015


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?

As always, any help much appreciated.

Kai



More information about the Python-list mailing list