[Image-SIG] Gif transparency

Fredrik Lundh fredrik at pythonware.com
Wed Sep 14 17:09:49 CEST 2005

"david" wrote:

> I have problem with transparency, when I write :
> im = Image.new("RGBA", size, (255,255,255,0))
> im.save('test.gif')
> If I write : im.save('test.png'), it's works.

GIF doesn't support RGBA images (it only supports "P" images with
one color flagged as "transparent")

the best way to convert from RGBA to P+transparency depends,
to some extent, on your application.  what's the use case in this


More information about the Image-SIG mailing list