The gifWriter module
This is another quick hack, written out of frustration with the GIF file writer in the Python Imaging Library, which uses 256 colours (and 9 bits per initial symbol) regardless of how many colours are used, doesn't seem to support transparency, and due to Unisys's aggravating patent restrictions cannot support LZW compression.
This module writes GIFs without these drawbacks, but because it is pure-Python it can be very slow (suitable for batch jobs but not, for example real-time GIF-producing scripts). Also using it may not be legal without a licence from Unisys, depending on where you live. Finally, animated GIFs are not supported.
See the top of the script for usage instructions.
Latest [dogfood] version
Version 0.2: module. Licence: new-BSD.