media-libs/
netpbm

A set of utilities for converting to/from the netpbm (and related) formats

http://netpbm.sourceforge.net/