pnmtorle1
Convert a netpbm image file into an rle image file.
Usage
pnmtorle
[-header] [-verbose] [-alpha] [-outfile=outfile] [pnmfile]
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.
Overview
This program is part of Netpbm(1) .
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.
pnmfile is the name of the Netpbm image input file. If you don't specify this argument, input is from Standard Input.
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.
Options
In addition to the options common to all programs based on libnetpbm (most notably -quiet, see
Common Options ⟨index.html#commonoptions⟩ ), pnmtorle recognizes the following command line options:
-
-verbose -
This option will cause
pnmtorleto 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.Before Netpbm 10.98 (March 2022), this option is just
-v.
-
-header -
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
-verboseoption except that no file conversion takes place.Before Netpbm 10.98 (March 2022), this option is just
-h.
-
-alpha -
This option causes
pnmtorleto 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.
-
-outfile outfile -
If you specify this option,
pnmtorlewrites the output to this file. If outfile is-or you don't specify-outfile,pnmtorlewrites the output to Standard Output.Before Netpbm 10.98 (March 2022), this option is just
-o.and
must be separated from its value by a space, not an equal sign.
Examples
pnmtorle -verbose file.ppm -outfile=file.rle
While running in verbose mode, convert file.ppm to RLE format and store resulting data in file.rle.
pnmtorle -header file.pgm
Dump the header information of the Netpbm file called file.pgm.
Document source
This manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at
-
http://netpbm.sourceforge.net/doc/pnmtorle.html
Releases
13 releases since Debian 3.0 (Woody); the text changed 3 times.
-alpha since Debian 12 (Bookworm);
-header since Debian 12 (Bookworm);
-outfile since Debian 12 (Bookworm);
-verbose since Debian 12 (Bookworm).
-a until Debian 11 (Bullseye);
-h until Debian 11 (Bullseye);
-v until Debian 11 (Bullseye).