about summary refs log tree commit diff
path: root/pnmtopnm.html
blob: 2fd4aa3b7d43e5de8e506677694d6bd2ef6c6e45 (plain) (blame)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Pnmtopnm User Manual</TITLE></HEAD>
<BODY>
<H1>pnmtopnm</H1>
Updated: 24 March 2005
<BR>
<A HREF="#index">Table Of Contents</A>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

pnmtopnm - copy a PNM image
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>pnmtopnm</B>

[<I>pnmfile</I>]

<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<P><b>pnmtopnm</b> 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 <b>cat</b>,
but it lets you convert between the plain (ASCII) and raw (binary)
subformats of PNM.  Use the <b>-plain</b> Netpbm common option to
ensure the output is plain PNM, and don't use <b>-plain</b> to ensure
the output is raw PNM.  See <a href="index.html#commonoptions"> Common
Options</a>.

<p>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.

<p><b>pnmtopnm</b> is really just another name for the program
<b>pamtopnm</b>.  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.

<A NAME="history">&nbsp;</A>
<H2>HISTORY</H2>

<p><b>pnmtopnm</b> was new in Netpbm 10.23 (July 2004).  It obsoleted
<b>pnmtoplainpnm</b>, 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 <b>pnmtopnm</b>).

<p>Then David Jones realized that the existing <b>pamtopnm</b> already
did everything that <b>pnmtopnm</b> did and more, so 
in Netpbm 10.27 (March 2005), <b>pnmtopnm</b> became simply an alternate
name for <b>pamtopnm</b>.

<A NAME="lbAE">&nbsp;</A>
<H2>SEE ALSO</H2>

<A HREF="ppmtoppm.html">ppmtoppm</A>
<A HREF="pgmtopgm.html">pgmtopgm</A>
<A HREF="pamtopnm.html">pamtopnm</A>
<A HREF="pnm.html">pnm</A>

<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNOPSIS</A>
<LI><A HREF="#lbAD">DESCRIPTION</A>
<LI><A HREF="#lbAE">SEE ALSO</A>
</UL>
</BODY>
</HTML>