ImageMagick is a robust collection of tools and libraries to read, write, and manipulate an image in many formats.
We also have it setup to support the uses of the GD library.