1Pnmtopnm User Manual(0)                                Pnmtopnm User Manual(0)
2
3
4

NAME

6       pnmtopnm - copy a PNM image
7

SYNOPSIS

9       pnmtopnm
10
11       [pnmfile]
12
13

DESCRIPTION

15       This program is part of Netpbm(1).
16
17       pnmtopnm  simply copies a PNM image to Standard Output.  The output has
18       the same major PNM format (PBM, PGM, or PPM) and maxval as  the  input.
19       This  may  seem an unnecessary duplication of cat, but it lets you con‐
20       vert between the plain (ASCII) and raw (binary) subformats of PNM.  Use
21       the  -plain Netpbm common option to ensure the output is plain PNM, and
22       don't use -plain to ensure the output is raw PNM.  See
23        Common Options ⟨index.html#commonoptions⟩ .
24
25       You don't normally need to convert between the PNM subformats,  because
26       any  program that uses the Netpbm library to read a PNM image will read
27       all of them directly.  But there are a lot of programs that  don't  use
28       the Netpbm library and understand only the raw format.  Plain format is
29       nice because it is human readable; people often use it  to  debug  pro‐
30       grams that process PNM images.
31
32       pnmtopnm  is  really  just  another name for the program pamtopnm.  The
33       latter does the job because like any  Netpbm  program  that  takes  PAM
34       input  via the Netpbm programming library facilities, it also takes PNM
35       input.
36
37

OPTIONS

39       There are no command line options defined  specifically  for  pnmtopnm,
40       but it recognizes the options common to all programs based on libnetpbm
41       (See
42        Common Options ⟨index.html#commonoptions⟩ .)
43
44

HISTORY

46       pnmtopnm was new in Netpbm 10.23  (July  2004).   It  obsoleted  pnmto‐
47       plainpnm,  which  specifically  did the conversion to plain PNM.  There
48       was no program to explicitly convert to raw PNM, but many  Netpbm  pro‐
49       grams can be made, with the right options, to be idempotent (i.e. to do
50       the same thing as pnmtopnm).
51
52       Then David Jones realized that the existing pamtopnm already did every‐
53       thing that pnmtopnm did and more, so in Netpbm 10.27 (March 2005), pnm‐
54       topnm became simply an alternate name for pamtopnm.
55
56

SEE ALSO

58       ppmtoppm(1) pgmtopgm(1) pamtopnm(1) pnm(1)
59

DOCUMENT SOURCE

61       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
62       source.  The master documentation is at
63
64              http://netpbm.sourceforge.net/doc/pnmtopnm.html
65
66netpbm documentation             24 March 2005         Pnmtopnm User Manual(0)
Impressum