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