1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
\
.\" 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" 1 "24 March 2005" "netpbm documentation"
.SH NAME
pnmtopnm - copy a PNM image
.UN synopsis
.SH SYNOPSIS
\fBpnmtopnm\fP
[\fIpnmfile\fP]
.UN description
.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 options
.SH OPTIONS
.PP
There are no command line options defined specifically
for \fBpnmtopnm\fP, but it recognizes the options common to all
programs based on libnetpbm (See
.UR index.html#commonoptions
Common Options
.UE
\&.)
.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 seealso
.SH SEE ALSO
.BR "ppmtoppm" (1)\c
\&
.BR "pgmtopgm" (1)\c
\&
.BR "pamtopnm" (1)\c
\&
.BR "pnm" (1)\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
|