gdmodule - Python GD module
 

Copyright © 1995 Richard Jones, Bureau of Meteorology Australia.
richard@bofh.asn.au

This module is a python wrapper for the GD library. Due to the constant change in the GD library API, there are several older versions of this module available here. It is distributed for free under a BSD-style license. With Richard's blessing, I have taken over support for this module; so, send all bug reports, etc. to chris.gonnerman@newcenturycomputers.net.


Description

The GDmodule is an interface to the GD library written by Thomas Boutell.
'gd is a graphics library. It allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and write out the result as a PNG or JPEG file. This is particularly useful in World Wide Web applications, where PNG and JPEG are two of the formats accepted for inline images by most browsers.'
Have a look at the Reference page for more information.

Download

PLEASE TAKE NOTE! Read below carefully to ensure that you have a high enough version of GD before you tell me about compile-time errors.

gdmodule-0.56.tar.gz GIF is back! This version, which requires gd 2.0.23 or higher, again supports reading and writing GIF images.

gdmodule-0.55.tar.gz Replaces version 0.54. This version contains bug fixes contributed by Greg Hewgill, Christopher Stone, Matti Jagula, Sadruddin Rejeb, and Betty Li. See the release notes if you are curious what was fixed. You need GD version 2.0.22 or later for this version.

gdmodule-0.53.tar.gz This version seems pretty stable. It includes bug fixes contributed by Dan Mosedale, John Hunter, and Greg Hewgill. You need GD version 2.0.22 or later for this version.

gdmodule-0.52.tar.gz is the current stable version. This version incorporates new functions from the matplotlib project (provided by John Hunter) and corrects an error in PyObject_HEAD_INIT() call noted by Stefan R Kuzminski. As usual, the documentation has not been updated for the new functionality.

gdmodule-0.51.tar.gz is a previous stable version. Supports reading/writing from/to arbitrary file-like objects thanks to Gregory P. Smith. Andreas Rottman submitted a prior patch for the same purpose, but by the narrowest of margins Smith's version won out. I have included Rottman's demo code and some of my own in gddemo.py.

gdmodule-0.40.tar.gz is a previous stable version, first with two-tiered design (Python module over extension).

gdmodule-0.26.tar.gz last "classic" version.