Reads a PNM image as input. Chooses ncolors colors to best represent the image, maps the existing colors to the new ones, and writes a PNM image as output. This program is simply a combination of pnmcolormap and pnmremap, where th