version 4, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
PNMTORLE |
|
|
2 |
!!!PNMTORLE |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
EXAMPLES |
|
|
8 |
SEE ALSO |
|
|
9 |
AUTHOR |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
pnmtorle - convert a Netpbm image file into an RLE image file. |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__pnmtorle__ [[ __-h__ ] [[ __-v__ ] [[ __-a__ ] [[ |
|
|
19 |
__-o__ ''outfile'' ] [[ ''pnmfile'' ] |
|
|
20 |
!!DESCRIPTION |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
This program converts Netpbm image files into Utah |
4 |
perry |
24 |
RLE(5) image files. You can include an alpha mask. If |
1 |
perry |
25 |
the input is a multiple image file, the output consists of |
|
|
26 |
several concatenated RLE images. |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
The RLE file will contain either a three channel color image |
|
|
30 |
(24 bits) or a single channel grayscale image (8 bits) |
|
|
31 |
depending upon the pnm file depth. If a converted ppm is |
|
|
32 |
displayed on an 8 bit display, the image must be dithered. |
|
|
33 |
In order to produce a better looking image (on 8 bit |
|
|
34 |
displays), it is recommended that the image be quantizing |
|
|
35 |
(to 8 bit mapped color) prior to its display. This may be |
|
|
36 |
done by piping the output of this program into the Utah |
|
|
37 |
mcut(1) or rlequant(1) utilities. An example |
|
|
38 |
of this is shown later. |
|
|
39 |
!!OPTIONS |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
__-v__ |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
This option will cause pnmtorle to operate in verbose mode. |
|
|
46 |
The header information is written to |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
__-h__ |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
This option allows the header of the Netpbm image to be |
|
|
53 |
dumped to |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
__-a__ |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
This option causes pnmtorle to include an alpha channel in |
|
|
60 |
the output image. The alpha channel is based on the image: |
|
|
61 |
Wherever a pixel is black, the corresponding alpha value is |
|
|
62 |
transparent. Everywhere else, the alpha value is fully |
|
|
63 |
opaque. |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
__-o__ ''outfile'' |
|
|
67 |
|
|
|
68 |
|
|
|
69 |
If specified, the output will be written to this file. If |
|
|
70 |
''outfile'' is |
|
|
71 |
'' |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
''pnmfile'' |
|
|
75 |
|
|
|
76 |
|
|
|
77 |
The name of the Netpbm image data file to be converted. If |
|
|
78 |
not specified, standard input is assumed. |
|
|
79 |
!!EXAMPLES |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
pnmtorle -v file.ppm -o file.rle |
|
|
83 |
|
|
|
84 |
|
|
|
85 |
While running in verbose mode, convert file.ppm to RLE |
|
|
86 |
format and store resulting data in file.rle. |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
pnmtorle -h file.pgm |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
Dump the header information of the Netpbm file called |
|
|
93 |
file.pgm. |
|
|
94 |
!!SEE ALSO |
|
|
95 |
|
|
|
96 |
|
|
|
97 |
rletopnm(1), urt(1), |
4 |
perry |
98 |
RLE(5). |
1 |
perry |
99 |
!!AUTHOR |
|
|
100 |
|
|
|
101 |
|
|
|
102 |
Wes Barris |
|
|
103 |
Army High Performance Computing Research Center (AHPCRC) |
|
|
104 |
Minnesota Supercomputer Center, Inc. |
|
|
105 |
---- |