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