1Ppmtoicr User Manual(0)                                Ppmtoicr User Manual(0)
2
3
4

NAME

6       ppmtoicr - convert a PPM image into NCSA ICR format
7
8

SYNOPSIS

10       ppmtoicr
11
12       [-windowname name]
13
14       [-expand expand]
15
16       [-display display]
17
18       [-rle]
19
20       [ppmfile]
21
22

DESCRIPTION

24       This program is part of Netpbm(1).
25
26       ppmtoicr  reads  a PPM file as input.  Produces an NCSA Telnet Interac‐
27       tive Color Raster graphic file as output.
28
29       If ppmfile is not supplied, ppmtoicr reads from Standard Input.
30
31       Interactive Color Raster (ICR) is  a  protocol  for  displaying  raster
32       graphics  on  workstation  screens. The protocol is implemented in NCSA
33       Telnet for the Macintosh version 2.3.  The ICR protocol shares  charac‐
34       teristics  of  the Tektronix graphics terminal emulation protocol.  For
35       example, escape sequences are used to control the display.
36
37       ppmtoicr will output the appropriate sequences to create  a  window  of
38       the  dimensions of the input image, create a colormap of up to 256 col‐
39       ors on the display, then load the picture data into the window.
40
41       Note that there is no icrtoppm tool - this transformation is one way.
42
43

OPTIONS

45       In addition to the options common to all programs  based  on  libnetpbm
46       (most notably -quiet, see
47        Common  Options  ⟨index.html#commonoptions⟩ ), ppmtoicr recognizes the
48       following command line options:
49
50
51
52       -windowname name
53              Output will be displayed in name (Default is to use  ppmfile  or
54              "untitled" if the input is from Standard Input).
55
56
57       -expand expand
58              Output  will  be expanded on display by factor expand (For exam‐
59              ple, a value of 2 will cause four pixels to be displayed for ev‐
60              ery input pixel.)
61
62
63       -display display
64              Output will be displayed on screen numbered display
65
66
67
68

EXAMPLES

70       To display a PPM file named ppmfile using the protocol:
71
72           ppmtoicr ppmfile
73
74
75       This will create a window named ppmfile on the display with the correct
76       dimensions for ppmfile, create and download a colormap  of  up  to  256
77       colors,  and download the picture into the window.  You may achieve the
78       same effect with the following sequence:
79
80           ppmtoicr ppmfile > filename
81           cat filename
82
83
84       To display a GIF file using the protocol in a window titled  after  the
85       input  file,  zoom the displayed image by a factor of 2, and run-length
86       encode the data:
87
88           giftopnm giffile | ppmtoicr -w giffile -r -e 2
89
90
91

LIMITATIONS

93       The protocol uses frequent fflush() calls to speed up display.  If  you
94       save the output to a file for later display via cat, ppmtoicr will draw
95       much more slowly.  In either case, increasing the  blocksize  limit  on
96       the display will speed up transmission substantially.
97
98

SEE ALSO

100       ppm(1)
101
102       NCSA  Telnet  for the Macintosh, University of Illinois at Urbana-Cham‐
103       paign (1989)
104
105

HISTORY

107       Until Netpbm 10.71 (June 2015), there was  a  -rle  option  documented,
108       which  was said to cause the output to use run length encoding compres‐
109       sion.  But because of a simple bug in option processing code,  the  op‐
110       tion  never had any effect.  And the compression code did not look like
111       it worked anyway and would take a fair amount of work to fix.   Because
112       it  was  unlikely  anyone  would ever use this program again, much less
113       want to use run length encoding, we removed it from  the  documentation
114       rather than fix the code.
115
116

AUTHOR

118       Copyright  (C) 1990 by Kanthan Pillay (svpillay@Princeton.EDU), Prince‐
119       ton University Computing and Information Technology.
120

DOCUMENT SOURCE

122       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
123       source.  The master documentation is at
124
125              http://netpbm.sourceforge.net/doc/ppmtoicr.html
126
127netpbm documentation             05 June 2015          Ppmtoicr User Manual(0)
Impressum