| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN"> |
| 2 |
<html><head><title>Rletopnm User Manual</title></head> |
| 3 |
<body> |
| 4 |
<h1>rletopnm</h1> |
| 5 |
Updated: 13 April 2000 |
| 6 |
<br> |
| 7 |
<a href="#index">Table Of Contents</a> |
| 8 |
|
| 9 |
<h2>NAME</h2> |
| 10 |
rletopnm - convert a Utah Raster Tools RLE image file to a PNM image file. |
| 11 |
|
| 12 |
<h2 id="synopsis">SYNOPSIS</h2> |
| 13 |
|
| 14 |
<b>rletopnm</b> |
| 15 |
|
| 16 |
[<b>--alphaout=</b>{<i>alpha-filename</i>,<b>-</b>}] |
| 17 |
[<b>--headerdump</b>|<b>-h</b>] |
| 18 |
|
| 19 |
[<b>--verbose</b>|<b>-v</b>] |
| 20 |
|
| 21 |
[<i>rlefile</i>|<b>-</b>] |
| 22 |
|
| 23 |
<p>All options may be abbreviated to their minimum unique abbreviation |
| 24 |
and options and arguments may be in any order. |
| 25 |
|
| 26 |
<h2 id="description">DESCRIPTION</h2> |
| 27 |
|
| 28 |
<p>This program is part of <a href="index.html">Netpbm</a>. |
| 29 |
|
| 30 |
<p><b>rletopnm</b> converts Utah Raster Toolkit RLE image files to PNM |
| 31 |
image files. <b>rletopnm</b> handles four types of RLE files: |
| 32 |
Grayscale (8 bit data, no color map), Pseudocolor (8 bit data with a |
| 33 |
color map), Truecolor (24 bit data with color map), and Directcolor |
| 34 |
(24 bit data, no color map). <b>rletopnm</b> generates a PPM file for |
| 35 |
all these cases except for the Grayscale file, for which |
| 36 |
<b>rletopnm</b> generates a PGM file. |
| 37 |
|
| 38 |
<p><i>rlefile</i> is the RLE input file. If it is absent or <b>-</b>, |
| 39 |
the input comes from Standard Input. |
| 40 |
|
| 41 |
<h2 id="options">OPTIONS</h2> |
| 42 |
|
| 43 |
<p>In addition to the options common to all programs based on libnetpbm |
| 44 |
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions"> |
| 45 |
Common Options</a>), <b>rletopnm</b> recognizes the following |
| 46 |
command line options: |
| 47 |
|
| 48 |
<dl compact> |
| 49 |
<dt><b>--alphaout=</b><i>alpha-filename</i> |
| 50 |
|
| 51 |
<dd> |
| 52 |
<b>rletopnm </b> creates a PGM (portable graymap) file containing the |
| 53 |
transparency channel values in the input image. If the input image doesn't |
| 54 |
contain an transparency channel, the <i>alpha-filename</i> file contains all |
| 55 |
zero (transparent) transparency values. If you don't specify |
| 56 |
<b>--alphaout</b>, <b>rletopnm</b> does not generate a transparency file, |
| 57 |
and if the input image has a transparency channel, <b>rletopnm</b> simply |
| 58 |
discards it. |
| 59 |
|
| 60 |
<p>If you specify <b>-</b> as the filename, <b>rletopnm</b> writes the |
| 61 |
transparency output to Standard Output and discards the image. |
| 62 |
|
| 63 |
<p>See <b><a href="pamcomp.html">pamcomp</a></b> for one way to use |
| 64 |
the transparency output file. |
| 65 |
|
| 66 |
<dt><b>--verbose</b> |
| 67 |
|
| 68 |
<dd>This option causes <b>rletopnm </b> to operate in verbose mode. |
| 69 |
It prints messages about what it's doing, including the contents of |
| 70 |
the RLE image header, to Standard Error. |
| 71 |
|
| 72 |
<dt><b>--headerdump</b> |
| 73 |
|
| 74 |
<dd>This option causes <b>rletopnm</b> to operate in header dump mode. |
| 75 |
It prints the contents of the RLE image header to Standard Error, but |
| 76 |
does not produce any other output. |
| 77 |
|
| 78 |
</dl> |
| 79 |
|
| 80 |
<h2 id="examples">EXAMPLES</h2> |
| 81 |
|
| 82 |
<ul> |
| 83 |
<li>While running in verbose mode, convert lenna.rle to PPM format and |
| 84 |
store the resulting image as lenna.ppm: |
| 85 |
|
| 86 |
<pre> |
| 87 |
<kbd> |
| 88 |
rletopnm --verbose lenna.rle >lenna.ppm |
| 89 |
</kbd> |
| 90 |
</pre> |
| 91 |
|
| 92 |
<li>Dump the header information of the RLE file called file.rle: |
| 93 |
|
| 94 |
<pre> |
| 95 |
<kbd> |
| 96 |
rletopnm --headerdump file.rle |
| 97 |
</kbd> |
| 98 |
</pre> |
| 99 |
|
| 100 |
<li>Convert RLE file dart.rle to PPM format as dart.ppm. Store the |
| 101 |
transparency channel of dart.rle as dartalpha.pgm (if dart.rle doesn't have |
| 102 |
a transparency channel, store a fully transparent transparency mask as |
| 103 |
dartalpha.pgm): |
| 104 |
|
| 105 |
<pre> |
| 106 |
<kbd> |
| 107 |
rletopnm --alphaout=dartalpha.pgm dart.rle >dart.ppm |
| 108 |
</kbd> |
| 109 |
</pre> |
| 110 |
|
| 111 |
</ul> |
| 112 |
|
| 113 |
<h2 id="seealso">SEE ALSO</h2> |
| 114 |
|
| 115 |
<b><a href="pnmtorle.html">pnmtorle</a></b>, |
| 116 |
|
| 117 |
<b><a href="pnmconvol.html">pnmconvol</a></b>, |
| 118 |
|
| 119 |
<b><a href="pnm.html">pnm</a></b>, |
| 120 |
|
| 121 |
<b><a href="ppm.html">ppm</a></b>, |
| 122 |
|
| 123 |
<b><a href="pgm.html">pgm</a></b>, |
| 124 |
|
| 125 |
<h2 id="author">AUTHOR</h2> |
| 126 |
|
| 127 |
Wes Barris |
| 128 |
<br> |
| 129 |
|
| 130 |
Army High Performance Computing Research Center (AHPCRC) |
| 131 |
<br> |
| 132 |
|
| 133 |
Minnesota Supercomputer Center, Inc. |
| 134 |
|
| 135 |
<p>Modifications by Eric Haines to produce raw and plain formats. |
| 136 |
|
| 137 |
<p>Modifications by Bryan Henderson to create transparency files and use |
| 138 |
mnemonic options. |
| 139 |
|
| 140 |
<hr> |
| 141 |
<h2 id="index">Table Of Contents</h2> |
| 142 |
<ul> |
| 143 |
<li><a href="#synopsis">SYNOPSIS</a> |
| 144 |
<li><a href="#description">DESCRIPTION</a> |
| 145 |
<li><a href="#options">OPTIONS</a> |
| 146 |
<li><a href="#examples">EXAMPLES</a> |
| 147 |
<li><a href="#seealso">SEE ALSO</a> |
| 148 |
<li><a href="#author">AUTHOR</a> |
| 149 |
</ul> |
| 150 |
</body> |
| 151 |
</html> |