3
<meta name="generator" content="groff -Thtml, see www.gnu.org">
4
<meta name="Content-Style" content="text/css">
5
<title>TIFFMEDIAN</title>
9
<h1 align=center>TIFFMEDIAN</h1>
10
<a href="#NAME">NAME</a><br>
11
<a href="#SYNOPSIS">SYNOPSIS</a><br>
12
<a href="#DESCRIPTION">DESCRIPTION</a><br>
13
<a href="#OPTIONS">OPTIONS</a><br>
14
<a href="#NOTES">NOTES</a><br>
15
<a href="#SEE ALSO">SEE ALSO</a><br>
18
<!-- Creator : groff version 1.17.2 -->
19
<!-- CreationDate: Mon Dec 22 00:39:35 2003 -->
22
<table width="100%" border=0 rules="none" frame="void"
23
cols="2" cellspacing="0" cellpadding="0">
24
<tr valign="top" align="left">
25
<td width="10%"></td><td width="90%">
26
tiffmedian - apply the median cut algorithm to data in a <small>TIFF</small> file</td></table>
27
<a name="SYNOPSIS"></a>
30
<table width="100%" border=0 rules="none" frame="void"
31
cols="2" cellspacing="0" cellpadding="0">
32
<tr valign="top" align="left">
33
<td width="10%"></td><td width="90%">
34
<b>tiffmedian</b> [ <i>options</i> ] <i>input.tif
35
output.tif</i></td></table>
36
<a name="DESCRIPTION"></a>
39
<table width="100%" border=0 rules="none" frame="void"
40
cols="2" cellspacing="0" cellpadding="0">
41
<tr valign="top" align="left">
42
<td width="10%"></td><td width="90%">
43
<i>tiffmedian</i> applies the median cut algorithm to an
44
<small>RGB</small> image in <i>input.tif</i> to generate a
45
palette image that is written to <i>output.tif</i>. The
46
generated colormap has, by default, 256 entries. The image
47
data is quantized by mapping each pixel to the closest color
48
values in the colormap.</td></table>
49
<a name="OPTIONS"></a>
52
<table width="100%" border=0 rules="none" frame="void"
53
cols="2" cellspacing="0" cellpadding="0">
54
<tr valign="top" align="left">
55
<td width="10%"></td><td width="90%">
56
<b>-c</b></td></table>
58
<table width="100%" border=0 rules="none" frame="void"
59
cols="2" cellspacing="0" cellpadding="0">
60
<tr valign="top" align="left">
61
<td width="21%"></td><td width="79%">
62
Specify the compression to use for data written to the
63
output file: <b>none</b> for no compression, <b>packbits</b>
64
for PackBits compression, <b>lzw</b> for Lempel-Ziv &
65
Welch compression, and <b>zip</b> for Deflate compression.
66
By default <i>tiffmedian</i> will compress data according to
67
the value of the <i>Compression</i> tag found in the source
70
<table width="100%" border=0 rules="none" frame="void"
71
cols="2" cellspacing="0" cellpadding="0">
72
<tr valign="top" align="left">
73
<td width="21%"></td><td width="79%">
74
<small>LZW</small> compression can be specified together
75
with a <i>predictor</i> value. A predictor value of 2 causes
76
each scanline of the output image to undergo horizontal
77
differencing before it is encoded; a value of 1 forces each
78
scanline to be encoded without differencing. LZW-specific
79
options are specified by appending a ``:''-separated list to
80
the ``lzw'' option; e.g. <b>-c lzw:2</b> for
81
<small>LZW</small> compression with horizontal
82
differencing.</td></table>
84
<table width="100%" border=0 rules="none" frame="void"
85
cols="2" cellspacing="0" cellpadding="0">
86
<tr valign="top" align="left">
87
<td width="10%"></td><td width="90%">
88
<b>-C</b></td></table>
90
<table width="100%" border=0 rules="none" frame="void"
91
cols="2" cellspacing="0" cellpadding="0">
92
<tr valign="top" align="left">
93
<td width="21%"></td><td width="79%">
94
Specify the number of entries to use in the generated
95
colormap. By default all 256 entries/colors are
98
<table width="100%" border=0 rules="none" frame="void"
99
cols="2" cellspacing="0" cellpadding="0">
100
<tr valign="top" align="left">
101
<td width="10%"></td><td width="90%">
102
<b>-f</b></td></table>
104
<table width="100%" border=0 rules="none" frame="void"
105
cols="2" cellspacing="0" cellpadding="0">
106
<tr valign="top" align="left">
107
<td width="21%"></td><td width="79%">
108
Apply Floyd-Steinberg dithering before selecting a colormap
111
<table width="100%" border=0 rules="none" frame="void"
112
cols="2" cellspacing="0" cellpadding="0">
113
<tr valign="top" align="left">
114
<td width="10%"></td><td width="90%">
115
<b>-r</b></td></table>
117
<table width="100%" border=0 rules="none" frame="void"
118
cols="2" cellspacing="0" cellpadding="0">
119
<tr valign="top" align="left">
120
<td width="21%"></td><td width="79%">
121
Specify the number of rows (scanlines) in each strip of data
122
written to the output file. By default, <i>tiffmedian</i>
123
attempts to set the rows/strip that no more than 8 kilobytes
124
of data appear in a strip.</td></table>
128
<table width="100%" border=0 rules="none" frame="void"
129
cols="2" cellspacing="0" cellpadding="0">
130
<tr valign="top" align="left">
131
<td width="10%"></td><td width="90%">
132
This program is derived from Paul Heckbert's <i>median</i>
133
program.</td></table>
134
<a name="SEE ALSO"></a>
137
<table width="100%" border=0 rules="none" frame="void"
138
cols="2" cellspacing="0" cellpadding="0">
139
<tr valign="top" align="left">
140
<td width="10%"></td><td width="90%">
141
<i>pal2rgb</i>(1), <i>tiffinfo</i>(1), <i>tiffcp</i>(1),
142
<i>tiffcmp</i>(1), <i>libtiff</i>(3)</td></table>
144
<table width="100%" border=0 rules="none" frame="void"
145
cols="2" cellspacing="0" cellpadding="0">
146
<tr valign="top" align="left">
147
<td width="10%"></td><td width="90%">
148
"Color Image Quantization for Frame Buffer
149
Display", Paul Heckbert, SIGGRAPH proceedings, 1982,
150
pp. 297-307.</td></table>