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

NAME

6       infotopam - convert Amiga .info icons to PAM
7
8

SYNOPSIS

10       infotopam [-forcecolor] [-numcolors numcolors] [-selected] [index color
11       ...]  [filename]
12
13       Minimum unique abbreviation of option is acceptable.  You may use  dou‐
14       ble  hyphens  instead  of single hyphen to denote options.  You may use
15       white space in place of the equals sign to separate an option name from
16       its value.
17
18

EXAMPLES

20       By default, infotopam converts the first icon in a .info file:
21
22           infotopam amiga.info > amiga.first.pam
23
24       Use  the  -selected  option to convert the second icon in a .info file.
25       Here infotopam reads from Standard Input:
26
27           infotopam -selected < amiga.info > amiga.second.pam
28
29       Use the -forcecolor option to force color conversion for a 1  bit-plane
30       .info file:
31
32           infotopam -forcecolor bw.info > bw.pam
33
34       Use  -numcolors to override colors for indexes 0 and 3.  Notice the two
35       ways to specify the color:
36
37           infotopam -numcolors 2 0 green 3 #FF0000 icon.info > icon.pam
38
39       Since Amiga monitors do not use square pixels, some  icons  may  appear
40       squished.  Filtering the output through pamscale can fix this:
41
42            infotopam squish.info | pamtopnm | pamscale -yscale 1.7 > normal.pnm
43
44

DESCRIPTION

46       This program is part of Netpbm(1).
47
48       infotopam  converts  an  Amiga .info (icon) file to a PAM image.  info‐
49       topam reads a .info file from filename, or from Standard Input  if  you
50       do not specify a file name, and writes the converted PAM image to Stan‐
51       dard Output.
52
53       infotopam currently handles 1 and 2 bit-plane icons.  If the .info icon
54       only  has  1  bit-plane, infotopam generates a bitmap (black&white) PAM
55       image; otherwise it generates a color PAM image.  You can  force  info‐
56       topam  to  convert  1 bit-plane images to color PAM images by using the
57       -forcecolor option.
58
59

OPTIONS

61       In addition to the options common to all programs  based  on  libnetpbm
62       (most notably -quiet, see
63        Common  Options ⟨index.html#commonoptions⟩ ), infotopam recognizes the
64       following command line options:
65
66
67
68       -forcecolor
69
70
71
72              Forces infotopam to convert 1 bit-plane icons to color PAM
73                images instead of bitmap PAM images.  infotopam uses the index
74              2
75                color for black and the index 1 color for white (more on this
76                below).
77
78
79       -numcolors numcolors
80
81
82
83              Tells infotopam how many colors to override.  Pixels in the
84                Amiga  .info  files  are assigned an index value rather than a
85              specific color.
86                The standard colors for a 2 bit-plane icon are:
87
88                  Index 0:  Blue   (00, 55, AA)
89                  Index 1:  White  (FF, FF, FF)
90                  Index 2:  Black  (00, 00, 20)
91                  Index 3:  Orange (FF, 8A, 00)
92
93              To override the colors, first specify how many colors  to  over‐
94              ride using
95                -numcolors, then specify an (index color) pair for each color
96                you want to override, where index is a value from 0 to 3 and
97                color the new color for that index.  Specify color as
98                described      for     the     pnm_parsecolor()       argument
99              ⟨libnetpbm_image.html#colorname⟩ .
100
101
102       -selected
103
104
105              Tells infotopam to convert the selected (second) icon instead of
106                the normal (first) icon.  Each Amiga .info icon file  contains
107              two icon
108                images.   The  first image is the normal, unselected icon, and
109              the second
110                image is the selected icon.  By default infotopam converts the
111              first
112                icon.   You  can  tell infotopam to convert the second icon by
113              using the
114                -selected option.
115
116
117
118       All options can be abbreviated to their shortest unique prefix.
119
120

SEE ALSO

122       pam(1) pamtopnm(1) pamscale(1)
123
124
125

NOTES

127       Thanks to the following people on  comp.sys.amiga.programmer  for  tips
128       and pointers on decoding the info file format:
129
130
131
132       ·      Ben Hutchings
133
134       ·      Thomas Richter
135
136       ·      Kjetil Svalastog Matheussen
137
138       ·      Anders Melchiorsen
139
140       ·      Dirk Stoecker
141
142       ·      Ronald V.D.
143
144
145       The format of the Amiga .info file is as follows:
146
147           DiskObject header            78 bytes
148           Optional DrawerData header   56 bytes
149           First icon header            20 bytes
150           First icon data              Varies
151           Second icon header           20 bytes
152           Second icon data             Varies
153
154       The  DiskObject  header  contains, among other things, the magic number
155       (0xE310), the object width  and  height  (inside  the  embedded  Gadget
156       header), and the version.
157
158       Each  icon  header  contains  the  icon  width and height, which can be
159       smaller than the object width and height, and the number of bit-planes.
160
161       The icon data has the following format:
162
163
164
165              BIT-PLANE planes, each with HEIGHT rows of (WIDTH
166                  +15) / 16 * 2 bytes length.
167
168       So if you have a 9x3x2 icon, the icon data will look like this:
169
170           aaaa aaaa a000 0000
171           aaaa aaaa a000 0000
172           aaaa aaaa a000 0000
173           bbbb bbbb b000 0000
174           bbbb bbbb b000 0000
175           bbbb bbbb b000 0000
176
177       where a is a bit for the first bit-plane, b is a  bit  for  the  second
178       bit-plane,  and  0  is  padding.  Thanks again to Ben Hutchings for his
179       very helpful post!
180
181

HISTORY

183       infotopam was new in Netpbm 10.22 (April 2004).
184
185

LIMITATIONS

187       infotopam currently only handles 1 and 2 bit-plane icons.
188
189       There is no pamtoinfo command, since the .info files contain a lot more
190       than just icon data, and mapping the colors would be difficult.
191
192

AUTHOR

194       Copyright (C) 2000, 2004 by Richard Griswold.
195

DOCUMENT SOURCE

197       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
198       source.  The master documentation is at
199
200              http://netpbm.sourceforge.net/doc/infotopam.html
201
202netpbm documentation             07 April 2004        Infotopam User Manual(0)
Impressum