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

LIMITATIONS

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

SEE ALSO

97       ppm(1)
98
99       NCSA  Telnet  for the Macintosh, University of Illinois at Urbana-Cham‐
100       paign (1989)
101
102

HISTORY

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

AUTHOR

115       Copyright  (C) 1990 by Kanthan Pillay (svpillay@Princeton.EDU), Prince‐
116       ton University Computing and Information Technology.
117

DOCUMENT SOURCE

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