PPM == Portable PixMap file format. There's a whole suite of pipelined tools (as well as programming libs) for converting / manipulating images using PPM as the intermediate and/or external format. Linux/Unix of course.

-ml