GD Graphics Library
The GD Graphics Library is an library for dynamically manipulating images. Its native programming language is ANSI C, but it has interfaces for many other programming languages. It can create JPEGs, PNGs, and WBMPs. Although GD doesn't create GIFs because of patent issues, it can read them.
GD can create images composed of lines, arcs, text (using program-selected fonts), other images, and multiple colors. Version 2.0 adds support for truecolor images, alpha channels, resampling (for smooth resizing of truecolor images), and many other features.
GD supports numerous programming languages including C, PHP, Perl, O'Caml, Tcl, Pascal, and REXX. There is also a tool called fly which allows access to GD from any language through a command-line program.