ppmtoicr1
Convert a ppm image into ncsa icr format
Usage
ppmtoicr
[-windowname name]
[-expand expand]
[-display display]
[ppmfile]
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) .
ppmtoicr reads a PPM file as input. Produces an NCSA Telnet Interactive Color Raster graphic file as output.
If ppmfile is not supplied, ppmtoicr reads from Standard Input.
Interactive Color Raster (ICR) is a protocol for displaying raster graphics on workstation screens. The protocol is implemented in NCSA Telnet for the Macintosh version 2.3. The ICR protocol shares characteristics of the Tektronix graphics terminal emulation protocol. For example, escape sequences are used to control the display.
ppmtoicr will output the appropriate sequences to create a window of the dimensions of the input image, create a colormap of up to 256 colors on the display, then load the picture data into the window.
Note that there is no icrtoppm tool - this transformation is one way.
Options
In addition to the options common to all programs based on libnetpbm (most notably -quiet, see
Common Options ⟨index.html#commonoptions⟩ ), ppmtoicr recognizes the following command line options:
-
-windowname name -
Output will be displayed in name.
name must be printable characters, and not '^'.
Default is to use the input file name if specified on the command line or
"untitled" if the input is from Standard Input. In the former case, any
unprintable character or '^' in the file name becomes a
'.' in the window name.
-
-expand expand -
Output will be expanded on display by factor expand (For example, a value of 2 will cause four pixels to be displayed for every input pixel.)
-
-display display -
Output will be displayed on screen numbered display
Examples
To display a PPM file named ppmfile using the protocol:
ppmtoicr ppmfile
This will create a window named ppmfile on the display with the correct dimensions for ppmfile, create and download a colormap of up to 256 colors, and download the picture into the window. You may achieve the same effect with the following sequence:
ppmtoicr ppmfile > filename
cat filename
To display a GIF file using the protocol in a window titled after the input file, zoom the displayed image by a factor of 2:
giftopnm giffile | ppmtoicr -windowname=giffile -expand=2
Limitations
The protocol uses frequent fflush() calls to speed up display. If you save the output to a file for later display via cat, ppmtoicr will draw much more slowly. In either case, increasing the blocksize limit on the display will speed up transmission substantially.
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/ppmtoicr.html
Releases
16 releases since Debian 2.0 (Hamm); the text changed 4 times.
-rle until Debian 11 (Bullseye).