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
|
\
.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
.\" Do not hand-hack it! If you have bug fixes or improvements, please find
.\" the corresponding HTML page on the Netpbm website, generate a patch
.\" against that, and send it to the Netpbm maintainer.
.TH "Pnmtorle User Manual" 0 "07 March 2022" "netpbm documentation"
.SH NAME
pnmtorle - convert a Netpbm image file into an RLE image file.
.UN synopsis
.SH SYNOPSIS
\fBpnmtorle\fP
[\fB-header\fP]
[\fB-verbose\fP]
[\fB-alpha\fP]
[\fB-outfile=\fP\fIoutfile\fP]
[\fIpnmfile\fP]
.PP
Minimum unique abbreviation of option is acceptable. You may use
double hyphens instead of single hyphen to denote options. You may use
white space in place of the equals sign to separate an option name
from its value.
.UN description
.SH DESCRIPTION
.PP
This program is part of
.BR "Netpbm" (1)\c
\&.
.PP
This program converts Netpbm image files into Utah RLE image files.
You can include a transparency mask. If the input is a multiple image file,
the output consists of several concatenated RLE images.
.PP
\fIpnmfile\fP is the name of the Netpbm image input file. If you don't
specify this argument, input is from Standard Input.
.PP
The RLE file will contain either a three channel color image (24 bits) or a
single channel grayscale image (8 bits) depending upon the type of Netpbm
input. If the Netpbm input is color, the RLE output is 3 channel 24 bit
color. If the Netpbm input is grayscale or black and white, the RLE output is
single channel grayscale.
.UN options
.SH OPTIONS
.PP
In addition to the options common to all programs based on libnetpbm (most
notably \fB-quiet\fP, see
.UR index.html#commonoptions
Common Options
.UE
\&), \fBpnmtorle\fP recognizes the following command line options:
.TP
\fB-verbose\fP
This option will cause \fBpnmtorle\fP to operate in verbose mode. The
program writes header information to Standard Error. Actually, there is not
much header information stored in a Netpbm file, so this information is
minimal.
.sp
Before Netpbm 10.98 (March 2022), this option is just \fB-v\fP.
.TP
\fB-header\fP
This option causes the program to dump the header of the Netpbm image to be
Standard Error without converting the file. It is equivalent to using
the \fB-verbose\fP option except that no file conversion takes place.
.sp
Before Netpbm 10.98 (March 2022), this option is just \fB-h\fP.
.TP
\fB-alpha\fP
This option causes \fBpnmtorle\fP to include a transparency channel in the
output image. The transparency channel is based on the image: Wherever a
pixel is black, the corresponding transparency value is transparent.
Everywhere else, the transparency value is fully opaque.
.TP
\fB-outfile\fP \fIoutfile\fP
If you specify this option, \fBpnmtorle\fP writes the output to
this file. If \fIoutfile\fP is \fB-\fP or you don't specify
\fB-outfile\fP, \fBpnmtorle\fP writes the output to Standard Output.
.sp
Before Netpbm 10.98 (March 2022), this option is just \fB-o\fP.and
must be separated from its value by a space, not an equal sign.
.UN examples
.SH EXAMPLES
.nf
pnmtorle -verbose file.ppm -outfile=file.rle
.fi
.PP
While running in verbose mode, convert file.ppm to RLE format and store
resulting data in file.rle.
.nf
pnmtorle -header file.pgm
.fi
.PP
Dump the header information of the Netpbm file called file.pgm.
.UN seealso
.SH SEE ALSO
.BR "rletopnm" (1)\c
\&
.UN author
.SH AUTHOR
.nf
Wes Barris,
Army High Performance Computing Research Center (AHPCRC)
Minnesota Supercomputer Center, Inc.
.fi
.SH DOCUMENT SOURCE
This manual page was generated by the Netpbm tool 'makeman' from HTML
source. The master documentation is at
.IP
.B http://netpbm.sourceforge.net/doc/pnmtorle.html
.PP
|