]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/tiff/man/tiffdither.1
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / src / tiff / man / tiffdither.1
... / ...
CommitLineData
1.\"
2.\" Copyright (c) 1990-1997 Sam Leffler
3.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
4.\"
5.\" Permission to use, copy, modify, distribute, and sell this software and
6.\" its documentation for any purpose is hereby granted without fee, provided
7.\" that (i) the above copyright notices and this permission notice appear in
8.\" all copies of the software and related documentation, and (ii) the names of
9.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
10.\" publicity relating to the software without the specific, prior written
11.\" permission of Sam Leffler and Silicon Graphics.
12.\"
13.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16.\"
17.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22.\" OF THIS SOFTWARE.
23.\"
24.if n .po 0
25.TH TIFFDITHER 1 "September 20, 2005" "libtiff"
26.SH NAME
27tiffdither \- convert a greyscale image to bilevel using dithering
28.SH SYNOPSIS
29.B tiffdither
30[
31.I options
32]
33.I input.tif
34.I output.tif
35.SH DESCRIPTION
36.I tiffdither
37converts a single channel 8-bit greyscale image to a bilevel image
38using Floyd-Steinberg error propagation with thresholding.
39.SH OPTIONS
40.TP
41.B \-c
42Specify the compression to use for data written to the output file:
43.B none
44for no compression,
45.B packbits
46for PackBits compression,
47.B lzw
48for Lempel-Ziv & Welch compression,
49.B zip
50for Deflate compression,
51.B g3
52for CCITT Group 3 (T.4) compression,
53and
54.B g4
55for CCITT Group 4 (T.6) compression.
56By default
57.I tiffdither
58will compress data according to the value of the
59.I Compression
60tag found in the source file.
61.IP
62The
63.SM CCITT
64Group 3 and Group 4 compression algorithms can only
65be used with bilevel data.
66.IP
67Group 3 compression can be specified together with several
68T.4-specific options:
69.B 1d
70for 1-dimensional encoding,
71.B 2d
72for 2-dimensional encoding,
73and
74.B fill
75to force each encoded scanline to be zero-filled so that the
76terminating EOL code lies on a byte boundary.
77Group 3-specific options are specified by appending a ``:''-separated
78list to the ``g3'' option; e.g.
79.B "\-c g3:2d:fill"
80to get 2D-encoded data with byte-aligned EOL codes.
81.IP
82.SM LZW
83compression can be specified together with a
84.I predictor
85value.
86A predictor value of 2 causes
87each scanline of the output image to undergo horizontal
88differencing before it is encoded; a value
89of 1 forces each scanline to be encoded without differencing.
90LZW-specific options are specified by appending a ``:''-separated
91list to the ``lzw'' option; e.g.
92.B "\-c lzw:2"
93for
94.SM LZW
95compression with horizontal differencing.
96.TP
97.B \-f
98Specify the bit fill order to use in writing output data.
99By default,
100.I tiffdither
101will create a new file with the same fill order as the original.
102Specifying
103.B "\-f lsb2msb"
104will force data to be written with the
105.I Fill\%Order
106tag set to
107.SM LSB2MSB ,
108while
109.B "\-f msb2lsb"
110will force data to be written with the
111.I Fill\%Order
112tag set to
113.SM MSB2LSB .
114.TP
115.B \-t
116Set the threshold value for dithering.
117By default the threshold value is 128.
118.SH NOTES
119The dither algorithm is taken from the
120.BR tiffmedian (1)
121program (written by Paul Heckbert).
122.SH "SEE ALSO"
123.BR pal2rgb (1),
124.BR fax2tiff (1),
125.BR tiffinfo (1),
126.BR tiffcp (1),
127.BR tiff2bw (1),
128.BR libtiff (3TIFF)
129.PP
130Libtiff library home page:
131.BR http://www.remotesensing.org/libtiff/