about summary refs log tree commit diff
path: root/pgmtopgm.html
blob: a2cd4e6e4126f89c6d78892637b678df50f27d60 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><title>Pgmtopgm User Manual</title></HEAD>

<BODY>
<H1>pgmtopgm</H1>
Updated: September 2002
<BR>
<A HREF="#index">Table Of Contents</A>

<H2>NAME</H2>
pgmtopgm - copy PGM image

<H2 id="synopsis">SYNOPSIS</H2>

<B>pgmtopgm</B>

<H2 id="description">DESCRIPTION</H2>

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

<P><b>pgmtopgm</b> simply copies a PGM image from Standard Input to
Standard Output.  This may seem an unnecessary duplication of
<b>cat</b>, but remember that a PGM program can read a PBM image as
if it were PGM.  So <b>pgmtopgm</b> can read either a PBM or PGM
image and produce a PGM image as output.

<p>Even that is of limited usefulness because of the fact that almost
any program to which you would feed the resulting PGM image could also
just take the original image directly.  However, sometimes you really
need a true PGM image.

<p>When you know you have a PBM image and want a PGM image,
<b>pbmtopgm</b> is a more general way to do that conversion.


<H2 id="seealso">SEE ALSO</H2>

<B><A HREF="ppmtoppm.html">ppmtoppm</A></B>,
<B><A HREF="pamtopam.html">pamtopam</A></B>,
<B><A HREF="pamtopnm.html">pamtopnm</A></B>,
<B><A HREF="pbmtopgm.html">pbmtopgm</A></B>,
<B><A HREF="pbm.html">pbm</A></B>,
<B><A HREF="pgm.html">pgm</A></B>,

<H2 id="history">HISTORY</H2>

<p>This program was added to Netpbm in Release 10.9 (September 2002).

<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#synopsis">SYNOPSIS</A>
<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF="#history">HISTORY</A>
</UL>
</BODY>
</HTML>