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