Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/sys/doc/netpbm/ms/rletopnm.ms

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TL
Rletopnm User Manual
.SH 1
RLETOPNM
.LP
Updated: 13 April 2000
.br
Table Of Contents
.SH 2
NAME
.LP
rletopnm - convert a Utah Raster Tools RLE image file to a PNM image file.
.SH 2
SYNOPSIS
.LP
\fBrletopnm\fR
[\fB--alphaout=\fR{\fIalpha-filename\fR,\fB-\fR}]
[\fB--headerdump\fR|\fB-h\fR]
[\fB--verbose\fR|\fB-v\fR]
[\fIrlefile\fR|\fB-\fR]
.LP
All options may be abbreviated to their minimum unique abbreviation
and options and arguments may be in any order.
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBrletopnm\fR converts Utah Raster Toolkit RLE image files to PNM
image files.  \fBrletopnm\fR 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).  \fBrletopnm\fR generates a PPM file for
all these cases except for the Grayscale file, for which
\fBrletopnm\fR generates a PGM file.
.LP
\fIrlefile\fR is the RLE input file.  If it is absent or \fB-\fR,
the input comes from Standard Input.
.SH 2
OPTIONS
.LP
.RS
.IP "\fB--alphaout=\fR\fIalpha-filename\fR"
\fBrletopnm \fR creates a PGM (portable graymap) file containing the
alpha channel values in the input image.  If the input image doesn't
contain an alpha channel, the \fIalpha-filename\fR file contains all
zero (transparent) alpha values.  If you don't specify
\fB--alphaout\fR, \fBrletopnm\fR does not generate an alpha file,
and if the input image has an alpha channel, \fBrletopnm\fR simply
discards it.
.LP
If you specify \fB-\fR as the filename, \fBrletopnm\fR writes the
alpha output to Standard Output and discards the image.
.LP
See \fBpamcomp\fR for one way to use
the alpha output file.
.IP "\fB--verbose\fR"
This option causes \fBrletopnm \fR to operate in verbose mode.
It prints messages about what it's doing, including the contents of
the RLE image header, to Standard Error.
.IP "\fB--headerdump\fR"
This option causes \fBrletopnm\fR 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.
.RE
.SH 2
EXAMPLES
.LP
.IP \(bu
While running in verbose mode, convert lenna.rle to PPM format and
store the resulting image as lenna.ppm:
.DS L
\f(CW    rletopnm --verbose lenna.rle >lenna.ppm
\fR.DE
.IP \(bu
Dump the header information of the RLE file called file.rle:
.DS L
\f(CW    rletopnm --headerdump file.rle
\fR.DE
.IP \(bu
Convert RLE file dart.rle to PPM format as dart.ppm.  Store the
alpha channel of dart.rle as dartalpha.pgm (if dart.rle doesn't have
an alpha channel, store a fully transparent alpha mask as
dartalpha.pgm):
.DS L
\f(CW    rletopnm --alphaout=dartalpha.pgm dart.rle >dart.ppm
\fR.DE
.LP
.SH 2
SEE ALSO
.LP
\fBpnmtorle\fR,
\fBpnmconvol\fR,
\fBpnm\fR,
\fBppm\fR,
\fBpgm\fR,
.SH 2
AUTHOR
.LP
Wes Barris
.br
Army High Performance Computing Research Center (AHPCRC)
.br
Minnesota Supercomputer Center, Inc.
.LP
Modifications by Eric Haines to support raw and plain formats.
.LP
Modifications by Bryan Henderson to create alpha files and use
mnemonic options.
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
OPTIONS
.IP \(bu
EXAMPLES
.IP \(bu
SEE ALSO
.IP \(bu
AUTHOR
.LP

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.