| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN"> |
| 2 | <html><head><title>Pnmtopnm User Manual</title></head> |
| 3 | <body> |
| 4 | <h1>pnmtopnm</h1> |
| 5 | Updated: 24 March 2005 |
| 6 | <br> |
| 7 | <a href="#index">Table Of Contents</a> |
| 8 | |
| 9 | <h2>NAME</h2> |
| 10 | |
| 11 | pnmtopnm - copy a PNM image |
| 12 | <h2 id="synopsis">SYNOPSIS</h2> |
| 13 | |
| 14 | <b>pnmtopnm</b> |
| 15 | |
| 16 | [<i>pnmfile</i>] |
| 17 | |
| 18 | <h2 id="description">DESCRIPTION</h2> |
| 19 | |
| 20 | <p>This program is part of <a href="index.html">Netpbm</a>. |
| 21 | |
| 22 | <p><b>pnmtopnm</b> simply copies a PNM image to Standard Output. The |
| 23 | output has the same major PNM format (PBM, PGM, or PPM) and maxval as |
| 24 | the input. This may seem an unnecessary duplication of <b>cat</b>, |
| 25 | but it lets you convert between the plain (ASCII) and raw (binary) |
| 26 | subformats of PNM. Use the <b>-plain</b> Netpbm common option to |
| 27 | ensure the output is plain PNM, and don't use <b>-plain</b> to ensure |
| 28 | the output is raw PNM. See <a href="index.html#commonoptions"> Common |
| 29 | Options</a>. |
| 30 | |
| 31 | <p>You don't normally need to convert between the PNM subformats, because |
| 32 | any program that uses the Netpbm library to read a PNM image will read |
| 33 | all of them directly. But there are a lot of programs that don't use |
| 34 | the Netpbm library and understand only the raw format. Plain format |
| 35 | is nice because it is human readable; people often use it to debug |
| 36 | programs that process PNM images. |
| 37 | |
| 38 | <p><b>pnmtopnm</b> is really just another name for the program |
| 39 | <b>pamtopnm</b>. The latter does the job because like any Netpbm |
| 40 | program that takes PAM input via the Netpbm programming library |
| 41 | facilities, it also takes PNM input. |
| 42 | |
| 43 | <h2 id="options">OPTIONS</h2> |
| 44 | |
| 45 | <p>There are no command line options defined specifically |
| 46 | for <b>pnmtopnm</b>, but it recognizes the options common to all |
| 47 | programs based on libnetpbm (See <a href="index.html#commonoptions"> |
| 48 | Common Options</a>.) |
| 49 | |
| 50 | <h2 id="history">HISTORY</h2> |
| 51 | |
| 52 | <p><b>pnmtopnm</b> was new in Netpbm 10.23 (July 2004). It obsoleted |
| 53 | <b>pnmtoplainpnm</b>, which specifically did the conversion to plain |
| 54 | PNM. There was no program to explicitly convert to raw PNM, but many |
| 55 | Netpbm programs can be made, with the right options, to be idempotent |
| 56 | (i.e. to do the same thing as <b>pnmtopnm</b>). |
| 57 | |
| 58 | <p>Then David Jones realized that the existing <b>pamtopnm</b> already |
| 59 | did everything that <b>pnmtopnm</b> did and more, so |
| 60 | in Netpbm 10.27 (March 2005), <b>pnmtopnm</b> became simply an alternate |
| 61 | name for <b>pamtopnm</b>. |
| 62 | |
| 63 | <h2 id="seealso">SEE ALSO</h2> |
| 64 | |
| 65 | <a href="ppmtoppm.html">ppmtoppm</a> |
| 66 | <a href="pgmtopgm.html">pgmtopgm</a> |
| 67 | <a href="pamtopnm.html">pamtopnm</a> |
| 68 | <a href="pnm.html">pnm</a> |
| 69 | |
| 70 | <hr> |
| 71 | <h2 id="index">Table Of Contents</h2> |
| 72 | <ul> |
| 73 | <li><a href="#synopsis">SYNOPSIS</a> |
| 74 | <li><a href="#description">DESCRIPTION</a> |
| 75 | <li><a href="#options">OPTIONS</a> |
| 76 | <li><a href="#history">HISTORY</a> |
| 77 | <li><a href="#seealso">SEE ALSO</a> |
| 78 | </ul> |
| 79 | </body> |
| 80 | </html> |