ImageMagick

ImageMagick is a set of tools for image manipulation and conversion. It consists of a set of command line programs as well as of a library that can be interfaced from own applications. It can do almost any image manipulation from a batch file or shell script and even brings its own scripting language. Besides this, it serves well to circumvent a known Photoshop bug that prevents it from opening large TIFF images.