\ .\" This man page was generated by the Netpbm tool 'makeman' from HTML source. .\" Do not hand-hack it! If you have bug fixes or improvements, please find .\" the corresponding HTML page on the Netpbm website, generate a patch .\" against that, and send it to the Netpbm maintainer. .TH "Pnmtopnm User Manual" 0 "24 March 2005" "netpbm documentation" .UN lbAB .SH NAME pnmtopnm - copy a PNM image .UN lbAC .SH SYNOPSIS \fBpnmtopnm\fP [\fIpnmfile\fP] .UN lbAD .SH DESCRIPTION .PP This program is part of .BR "Netpbm" (1)\c \&. .PP \fBpnmtopnm\fP 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\fP, but it lets you convert between the plain (ASCII) and raw (binary) subformats of PNM. Use the \fB-plain\fP Netpbm common option to ensure the output is plain PNM, and don't use \fB-plain\fP to ensure the output is raw PNM. See .UR index.html#commonoptions Common Options .UE \&. .PP 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. .PP \fBpnmtopnm\fP is really just another name for the program \fBpamtopnm\fP. 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. .UN history .SH HISTORY .PP \fBpnmtopnm\fP was new in Netpbm 10.23 (July 2004). It obsoleted \fBpnmtoplainpnm\fP, 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\fP). .PP Then David Jones realized that the existing \fBpamtopnm\fP already did everything that \fBpnmtopnm\fP did and more, so in Netpbm 10.27 (March 2005), \fBpnmtopnm\fP became simply an alternate name for \fBpamtopnm\fP. .UN lbAE .SH SEE ALSO .BR "ppmtoppm" (1)\c \& .BR "pgmtopgm" (1)\c \& .BR "pamtopnm" (1)\c \& .BR "pnm" (5)\c \& .SH DOCUMENT SOURCE This manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at .IP .B http://netpbm.sourceforge.net/doc/pnmtopnm.html .PP