[Image-SIG] transparency on gif images (URGENT)

Bill Shui bill.shui@eBioinformatics.com
Thu, 06 Jan 2000 15:17:56 +1100


Hi
	I've encountered some problems whilst using PIL and trying to produce a
gif file with transparency.

####
#  ##
#  ##
#####
 ####

the above image is a double box 20x20 pixels in size.
I wanted to set the top right and bottom left corner to transparent.


in my code I have:

im = Image.open("doublebox.gif")
im.info['transparency']=im.getpixel((19,0))

the resulting im.info shows
 'transparency': 0}

then I did

im.save("mybox.gif")

and when I displayed it in netscape, the transparency did not work.

so I opened up image again using:
	im = Image.open("mybox.gif")
>> im.info
{'version': 'GIF87a', 'background': 0}

and the transparency is gone....

anyone knows how to set transparencies at all??????


need help... URGENT