1 <!-- Creator : groff version 1.18.1 -->
2 <!-- CreationDate: Mon Mar 13 18:03:13 2006 -->
5 <meta name=
"generator" content=
"groff -Thtml, see www.gnu.org">
6 <meta name=
"Content-Style" content=
"text/css">
7 <title>TIFFDITHER
</title>
11 <h1 align=center
>TIFFDITHER
</h1>
12 <a href=
"#NAME">NAME
</a><br>
13 <a href=
"#SYNOPSIS">SYNOPSIS
</a><br>
14 <a href=
"#DESCRIPTION">DESCRIPTION
</a><br>
15 <a href=
"#OPTIONS">OPTIONS
</a><br>
16 <a href=
"#NOTES">NOTES
</a><br>
17 <a href=
"#SEE ALSO">SEE ALSO
</a><br>
23 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
24 cols=
"2" cellspacing=
"0" cellpadding=
"0">
25 <tr valign=
"top" align=
"left">
28 <p>tiffdither
− convert a greyscale image to bilevel
32 <a name=
"SYNOPSIS"></a>
35 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
36 cols=
"2" cellspacing=
"0" cellpadding=
"0">
37 <tr valign=
"top" align=
"left">
40 <p><b>tiffdither
</b> [
<i>options
</i> ]
<i>input.tif
44 <a name=
"DESCRIPTION"></a>
47 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
48 cols=
"2" cellspacing=
"0" cellpadding=
"0">
49 <tr valign=
"top" align=
"left">
52 <p><i>tiffdither
</i> converts a single channel
8-bit
53 greyscale image to a bilevel image using Floyd-Steinberg
54 error propagation with thresholding.
</p>
57 <a name=
"OPTIONS"></a>
60 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
61 cols=
"5" cellspacing=
"0" cellpadding=
"0">
62 <tr valign=
"top" align=
"left">
66 <p><b>−c
</b></p>
71 <p>Specify the compression to use for data written to the
72 output file:
<b>none
</b> for no compression,
<b>packbits
</b>
73 for PackBits compression,
<b>lzw
</b> for Lempel-Ziv
&
74 Welch compression,
<b>zip
</b> for Deflate compression,
75 <b>g3
</b> for CCITT Group
3 (T
.4) compression, and
<b>g4
</b>
76 for CCITT Group
4 (T
.6) compression. By default
77 <i>tiffdither
</i> will compress data according to the value
78 of the
<i>Compression
</i> tag found in the source file.
</p>
84 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
85 cols=
"2" cellspacing=
"0" cellpadding=
"0">
86 <tr valign=
"top" align=
"left">
89 <p>The
<small>CCITT
</small> Group
3 and Group
4 compression
90 algorithms can only be used with bilevel data.
</p>
92 <p>Group
3 compression can be specified together with
93 several T
.4-specific options:
<b>1d
</b> for
1-dimensional
94 encoding,
<b>2d
</b> for
2-dimensional encoding, and
95 <b>fill
</b> to force each encoded scanline to be zero-filled
96 so that the terminating EOL code lies on a byte boundary.
97 Group
3-specific options are specified by appending a
98 ‘‘:
’’-separated list to the
99 ‘‘g3
’’ option; e.g.
<b>−c
100 g3:
2d:fill
</b> to get
2D-encoded data with byte-aligned EOL
103 <p><small>LZW
</small> compression can be specified together
104 with a
<i>predictor
</i> value. A predictor value of
2 causes
105 each scanline of the output image to undergo horizontal
106 differencing before it is encoded; a value of
1 forces each
107 scanline to be encoded without differencing. LZW-specific
108 options are specified by appending a
109 ‘‘:
’’-separated list to the
110 ‘‘lzw
’’ option; e.g.
<b>−c
111 lzw:
2</b> for
<small>LZW
</small> compression with horizontal
116 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
117 cols=
"5" cellspacing=
"0" cellpadding=
"0">
118 <tr valign=
"top" align=
"left">
119 <td width=
"10%"></td>
122 <p><b>−f
</b></p>
127 <p>Specify the bit fill order to use in writing output
128 data. By default,
<i>tiffdither
</i> will create a new file
129 with the same fill order as the original. Specifying
130 <b>−f lsb2msb
</b> will force data to be written with
131 the FillOrder tag set to
<small>LSB2MSB ,
</small> while
132 <b>−f msb2lsb
</b> will force data to be written with
133 the FillOrder tag set to
<small>MSB2LSB .
</small></p>
137 <tr valign=
"top" align=
"left">
138 <td width=
"10%"></td>
141 <p><b>−t
</b></p>
146 <p>Set the threshold value for dithering. By default the
147 threshold value is
128.
</p>
155 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
156 cols=
"2" cellspacing=
"0" cellpadding=
"0">
157 <tr valign=
"top" align=
"left">
160 <p>The dither algorithm is taken from the
161 <b>tiffmedian
</b>(
1) program (written by Paul Heckbert).
</p>
164 <a name=
"SEE ALSO"></a>
167 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
168 cols=
"2" cellspacing=
"0" cellpadding=
"0">
169 <tr valign=
"top" align=
"left">
172 <p><b>pal2rgb
</b>(
1),
<b>fax2tiff
</b>(
1),
173 <b>tiffinfo
</b>(
1),
<b>tiffcp
</b>(
1),
<b>tiff2bw
</b>(
1),
174 <b>libtiff
</b>(
3TIFF)
</p>
176 <p>Libtiff library home page:
177 <b>http://www.remotesensing.org/libtiff/
</b></p>