Image.new() bug on Solaris???

Thomas & Jennifer Thompson tmt1630 at cs.rit.edu
Sun Mar 26 18:59:34 EST 2000


Hello,

I'm having trouble with creating black/white bitmaps
with Python and PIL.  I'm using Python v1.5.2,
PIL v1.0, and Solaris 5.7.  When I run the following
code, I end up with an all-black picture (which
I would expect to be all-white).

**********************
import Image
x=Image.new("1", (50,50), 0xff)
x.save('test.bmp')
***********************

A while ago, FL suggested trying -1 in place
of 0xff, but that didn't change anything.

Can someone out there with the same versions
of Python, PIL and Solaris try this code for
me?  I'm interested to see what results you get.

Thanks!

Tom




More information about the Python-list mailing list