Pillow bug?
kai.peters at gmail.com
kai.peters at gmail.com
Tue Mar 24 15:52:30 EDT 2015
Judging from the message archive, the image-sig list is (just about) dead?
Disclaimer: Am a newbie - so anything is possible
using 'RGB' works fine
img = Image.new('RGB', (inktile[0], inktile[1]), bgcolor)
using '1' or 'L' does not (see trace below)
img = Image.new('L', (inktile[0], inktile[1]), bgcolor)
I change nothing else but the first parameter. If I switch the 'L' back to 'RGB' it works again.
img = Image.new('L', (inktile[0], inktile[1]), bgcolor)
File "C:\Python27\lib\site-packages\PIL\Image.py", line 2015, in new
return Image()._new(core.fill(mode, size, color))
TypeError: an integer is required
The docs say that '1' and 'L' are supported - something broken? Something I do not understand?
Thanks for any pointers,
Kai
More information about the Python-list
mailing list