ExactImage is a fast imaging library including a command line frontend.

WWW: https://exactcode.com/opensource/exactimage/
