summary refs log tree commit diff
path: root/ilbmtoppm.html
blob: e403d5028a008955cc93ed86f620d897c18e600e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Ilbmtoppm User Manual</title></head>
<body>
<h1>ilbmtoppm</h1>
Updated: 12 November 2014
<br>
<a href="#index">Table Of Contents</a>

<h2>NAME</h2>
ilbmtoppm - convert an ILBM file into a PPM image

<h2 id="synopsis">SYNOPSIS</h2>

<b>ilbmtoppm</b>
[<b>-ignore</b>&lt;chunkID&gt;<b>]</b>
[
<b>-isham</b> | <b>-isnotham</b> |
<b>-isehb</b> | <b>-isnotehb</b> |
<b>-isdeep</b> | <b>-isnotdeep</b>
]
[<b>-cmaponly</b>]
[<b>-adjustcolors</b>]
[<b>-transparent </b><i>color</i>]
[<b>-maskfile</b> <i>filename</i>
[<b>-verbose</b>]
[<i>ILBMfile</i>]


<h2 id="description">DESCRIPTION</h2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>ilbmtoppm</b> reads an IFF ILBM file as input and produces a PPM
image as output.  <b>ilbmtoppm</b> can handle the following ILBM types:

<ul>
<li>Normal ILBMs with 1-16 planes.
<li>Amiga Extra_Halfbrite (EHB)
<li>Amiga HAM with 3-16 planes.
<li>24 bit.
<li>Multiplatte (normal or HAM) pictures.
<li>Color map (BMHD + CMAP chunk only, nPlanes = 0).
<li>Unofficial direct color.  1-16 planes for each color component.
</ul>

<p><b>ilbmtoppm</b> uses these ILBM chunks: BMHD, CMAP, CAMG (only HAM
&amp; EHB flags used), PCHG, BODY unofficial DCOL chunk to identify
direct color ILBM.  It ignores these chunks: GRAB, DEST, SPRT, CRNG,
CCRT, CLUT, DPPV, DRNG, EPSF.  It ignores, but displays in verbose
mode, these: NAME, AUTH, (c), ANNO, DPI.  It skips chunks whose type
it doesn't recognize.

<h2 id="options">OPTIONS</h2>

<p>In addition to the options common to all programs based on libnetpbm
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
Common Options</a>), <b>ilbmtoppm</b> recognizes the following
command line options:

<dl compact>

<dt><b>-transparent </b><i>color</i>
<dd>This is the color that should "show through" in places where
the image is transparent.

<p><i>color</i> is like the <a href="libnetpbm_image.html#colorname">argument of
the <b>pnm_parsecolor()</b> library routine</a>.

<dt><b>-verbose</b>

<dd>Give some information about the ILBM file.

<dt><b>-ignore</b> <i>chunkID</i>

<dd>Skip a chunk.  <i>chunkID</i> is the 4-letter IFF chunk identifier
of the chunk to be skipped.

<dt><b>-isham</b> | <b>-isehb</b>

<dd>Treat the input file as a HAM or Extra_Halfbrite picture, even if
these flags are not set in the CAMG chunk (or if there is no CAMG
chunk).

<dt><b>-maskfile</b> <i>filename</i>

<dd>This names a file for <b>ilbmtoppm</b> to create with the image's
transparency mask.  The mask file is a PBM image which maps to the input image
with white pixels representing transparent pixels in the image and black
pixels representing opaque pixels.

<p>If you don't specify this, or the image does not contain transparency
information, <b>ilbmtoppm</b> does not create a mask file.

<dt><b>-cmaponly</b>

<dd>With this option, <b>ilbmtoppm</b> generates a PPM of the ILBM's <em>color
map</em>, not the image itself.

<p><b>ilbmtoppm</b> does the same thing even without <b>-cmaponly</b> if the
ILBM is a pure color map stream (it has a bitmap header with an <i>nplanes</i>
value of zero or has no BODY chunk.

<dt><b>-adjustcolors</b>

<dd>If all colors in the CMAP have a value of less then 16, ilbmtoppm
assumes a 4-bit colormap and gives a warning.  With this option the
colormap is scaled to 8 bits.

</dl>


<h2 id="limitations">LIMITATIONS</h2>

<p>The multipalette PCHG BigLineChanges and Huffman decompression code
is untested.

<h2 id="references">REFERENCES</h2>

Amiga ROM Kernel Reference Manual - Devices (3rd Ed.)
Addison Wesley, ISBN 0-201-56775-X

<h2 id="seealso">SEE ALSO</h2>

<a href="ppmtoilbm.html">ppmtoilbm</a>,
<a href="ppm.html">ppm</a>

<h2 id="authors">AUTHORS</h2>

Copyright (C) 1989 by Jef Poskanzer.

<p>Modified October 1993 by Ingo Wilken (<a
href="mailto:Ingo.Wilken@informatik.uni-oldenburg.de">Ingo.Wilken@informatik.uni-oldenburg.de</a>)

<hr>
<h2 id="index">Table Of Contents</h2>
<ul>
<li><a href="#synopsis">SYNOPSIS</a>
<li><a href="#description">DESCRIPTION</a>
<li><a href="#options">OPTIONS</a>
<li><a href="#limitations">LIMITATIONS</a>
<li><a href="#references">REFERENCES</a>
<li><a href="#seealso">SEE ALSO</a>
<li><a href="#authors">AUTHORS</a>
</ul>
</body>
</html>