pnmtopnm
Updated: 31 May 2004
Table Of Contents
NAME
pnmtopnm - copy a PNM image
SYNOPSIS
pnmtopnm [pnmfile]
DESCRIPTION
This program is part of Netpbm.
pnmtopnm simply copies a PNM image to Standard Output. The
output has the
same major PNM format (PBM, PGM, or PPM) and maxval as the in-
put. This may
seem an unnecessary duplication of cat, but it lets you con-
vert between the
plain (ASCII) and raw (binary) subformats of PNM. Use the
-plain Netpbm
common option to ensure the output is plain PNM, and don't use
-plain to
ensure the output is raw PNM. See Common Options.
You don't normally need to convert between the PNM subformats,
because any
program that uses the Netpbm library to read a PNM image will
read all of
them directly. But there are a lot of programs that don't use
the Netpbm
library and understand only the raw format. Plain format is
nice because it
is human readable; people often use it to debug programs that
process PNM
images.
HISTORY
pnmtopnm was new in Netpbm 10.23 (July 2004). It obsoleted pn-
mtoplainpnm,
which specifically did the conversion to plain PNM. There was
no program to
explicitly convert to raw PNM, but many Netpbm programs can be
made, with
the right options, to be idempotent (i.e. to do the same thing
as pnmtopnm).
SEE ALSO
ppmtoppm pgmtopgm pnm
_________________________________________________________________
Table Of Contents
* NAME
* SYNOPSIS
* DESCRIPTION
* SEE ALSO
UNIX/Linux commands referenced on this page:
- as
- cat
- raw
- convert
- which
- ppmtoppm
- pgmtopgm