ppmtopat man page
ppmtopat - convert a portable pixmap into a 2 dimensional
CAM-8 pattern file and colormap file
ppmtopat [ppmfile] CAMfile
Reads a portable pixmap as input from a file or from stan-
dard input. Produces a CAM-8 pattern file and colormap
file as output. The suffix ".pat" is appended to the CAM-
file argument and the resulting filename is used for the
pattern file. The colormap file is likewise saved with
the suffix ".map".
name to save the ppm file as. If omitted ppmtopat
reads from standard input.
base name of the CAM-8 colormap file and pattern
Convert the file cheryl.ppm to a CAM-8 pattern file called
sheryl.pat and save the associated colormap as sheryl.map:
example% ppmtopat cheryl.ppm sheryl
Since the CAM-8 can only display 256 colors at once, the
ppmfile cannot have more than 256 colors in it for this
program to work. This can be remedied by using ppmquant,
but the extra color data will be lost.
pattoppm(1), ppm(5), pnmflip(1), ppmquant(1)
Copyright (c) 1994 by Daniel R. Risacher,
Portions Copyright (c) 1991 by Jef Poskanzer.