Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/sys/doc/netpbm/ms/pnmtopnm.ms

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TL
Pnmtopnm User Manual
.SH 1
pnmtopnm
.LP
Updated: 24 March 2005
.br
Table Of Contents
.SH 2
NAME
.LP
pnmtopnm - copy a PNM image
.SH 2
SYNOPSIS
.LP
\fBpnmtopnm\fR
[\fIpnmfile\fR]
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBpnmtopnm\fR simply copies a PNM image to Standard Output.  The
output has the same major PNM format (PBM, PGM, or PPM) and maxval as
the input.  This may seem an unnecessary duplication of \fBcat\fR,
but it lets you convert between the plain (ASCII) and raw (binary)
subformats of PNM.  Use the \fB-plain\fR Netpbm common option to
ensure the output is plain PNM, and don't use \fB-plain\fR to ensure
the output is raw PNM.  See  Common
Options.
.LP
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.
.LP
\fBpnmtopnm\fR is really just another name for the program
\fBpamtopnm\fR.  The latter does the job because like any Netpbm
program that takes PAM input via the Netpbm programming library
facilities, it also takes PNM input.
.SH 2
HISTORY
.LP
.LP
\fBpnmtopnm\fR was new in Netpbm 10.23 (July 2004).  It obsoleted
\fBpnmtoplainpnm\fR, 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 \fBpnmtopnm\fR).
.LP
Then David Jones realized that the existing \fBpamtopnm\fR already
did everything that \fBpnmtopnm\fR did and more, so 
in Netpbm 10.27 (March 2005), \fBpnmtopnm\fR became simply an alternate
name for \fBpamtopnm\fR.
.SH 2
SEE ALSO
.LP
ppmtoppm
pgmtopgm
pamtopnm
pnm
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
SEE ALSO
.LP

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.