Converting GIFs with Python Image Library

Andrew Clover and-google at doxdesk.com
Tue Nov 4 14:40:30 EST 2003


larsdoer at yahoo.com (Lars) wrote:

> Is there a way to specify the background color when converting images
> with transparency?

Not as far as I am aware, last time I tried at least. I wrote this to
work around the problem:

  http://www.doxdesk.com/software/py/gifwriter.html

Deals with transparency, low-bpp and LZW compression (so you may need
a patent licence to use it, depending on where you live). Doesn't deal
with animated GIFs, and is pretty slow (as it's pure-Python). May or may
not fit your needs.

-- 
Andrew Clover
mailto:and at doxdesk.com
http://www.doxdesk.com/




More information about the Python-list mailing list