Windows/Linux command line tools and C libs to do image manipulation. Very powerful. Very fast. Deliciously bug-free. Open source.
See http://www.imagemagick.org/
See also TclMagick