Blame man/tiffdither.1

Packit Service db44fb
.\" $Id: tiffdither.1,v 1.4 2006/04/20 12:17:19 dron Exp $
Packit Service db44fb
.\"
Packit Service db44fb
.\" Copyright (c) 1990-1997 Sam Leffler
Packit Service db44fb
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
Packit Service db44fb
.\"
Packit Service db44fb
.\" Permission to use, copy, modify, distribute, and sell this software and 
Packit Service db44fb
.\" its documentation for any purpose is hereby granted without fee, provided
Packit Service db44fb
.\" that (i) the above copyright notices and this permission notice appear in
Packit Service db44fb
.\" all copies of the software and related documentation, and (ii) the names of
Packit Service db44fb
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit Service db44fb
.\" publicity relating to the software without the specific, prior written
Packit Service db44fb
.\" permission of Sam Leffler and Silicon Graphics.
Packit Service db44fb
.\" 
Packit Service db44fb
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit Service db44fb
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit Service db44fb
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit Service db44fb
.\" 
Packit Service db44fb
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit Service db44fb
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit Service db44fb
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit Service db44fb
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
Packit Service db44fb
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
Packit Service db44fb
.\" OF THIS SOFTWARE.
Packit Service db44fb
.\"
Packit Service db44fb
.if n .po 0
Packit Service db44fb
.TH TIFFDITHER 1 "September 20, 2005" "libtiff"
Packit Service db44fb
.SH NAME
Packit Service db44fb
tiffdither \- convert a greyscale image to bilevel using dithering
Packit Service db44fb
.SH SYNOPSIS
Packit Service db44fb
.B tiffdither
Packit Service db44fb
[
Packit Service db44fb
.I options
Packit Service db44fb
]
Packit Service db44fb
.I input.tif
Packit Service db44fb
.I output.tif
Packit Service db44fb
.SH DESCRIPTION
Packit Service db44fb
.I tiffdither
Packit Service db44fb
converts a single channel 8-bit greyscale image to a bilevel image
Packit Service db44fb
using Floyd-Steinberg error propagation with thresholding.
Packit Service db44fb
.SH OPTIONS
Packit Service db44fb
.TP
Packit Service db44fb
.B \-c
Packit Service db44fb
Specify the compression to use for data written to the output file:
Packit Service db44fb
.B none 
Packit Service db44fb
for no compression,
Packit Service db44fb
.B packbits
Packit Service db44fb
for PackBits compression,
Packit Service db44fb
.B lzw
Packit Service db44fb
for Lempel-Ziv & Welch compression,
Packit Service db44fb
.B zip
Packit Service db44fb
for Deflate compression,
Packit Service db44fb
.B g3
Packit Service db44fb
for CCITT Group 3 (T.4) compression,
Packit Service db44fb
and
Packit Service db44fb
.B g4
Packit Service db44fb
for CCITT Group 4 (T.6) compression.
Packit Service db44fb
By default
Packit Service db44fb
.I tiffdither
Packit Service db44fb
will compress data according to the value of the
Packit Service db44fb
.I Compression
Packit Service db44fb
tag found in the source file.
Packit Service db44fb
.IP
Packit Service db44fb
The
Packit Service db44fb
.SM CCITT
Packit Service db44fb
Group 3 and Group 4 compression algorithms can only
Packit Service db44fb
be used with bilevel data.
Packit Service db44fb
.IP
Packit Service db44fb
Group 3 compression can be specified together with several
Packit Service db44fb
T.4-specific options:
Packit Service db44fb
.B 1d
Packit Service db44fb
for 1-dimensional encoding,
Packit Service db44fb
.B 2d
Packit Service db44fb
for 2-dimensional encoding,
Packit Service db44fb
and
Packit Service db44fb
.B fill
Packit Service db44fb
to force each encoded scanline to be zero-filled so that the
Packit Service db44fb
terminating EOL code lies on a byte boundary.
Packit Service db44fb
Group 3-specific options are specified by appending a ``:''-separated
Packit Service db44fb
list to the ``g3'' option; e.g.
Packit Service db44fb
.B "\-c g3:2d:fill"
Packit Service db44fb
to get 2D-encoded data with byte-aligned EOL codes.
Packit Service db44fb
.IP
Packit Service db44fb
.SM LZW
Packit Service db44fb
compression can be specified together with a 
Packit Service db44fb
.I predictor
Packit Service db44fb
value.
Packit Service db44fb
A predictor value of 2 causes
Packit Service db44fb
each scanline of the output image to undergo horizontal
Packit Service db44fb
differencing before it is encoded; a value
Packit Service db44fb
of 1 forces each scanline to be encoded without differencing.
Packit Service db44fb
LZW-specific options are specified by appending a ``:''-separated
Packit Service db44fb
list to the ``lzw'' option; e.g.
Packit Service db44fb
.B "\-c lzw:2"
Packit Service db44fb
for
Packit Service db44fb
.SM LZW
Packit Service db44fb
compression with horizontal differencing.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-f
Packit Service db44fb
Specify the bit fill order to use in writing output data.
Packit Service db44fb
By default,
Packit Service db44fb
.I tiffdither
Packit Service db44fb
will create a new file with the same fill order as the original.
Packit Service db44fb
Specifying
Packit Service db44fb
.B "\-f lsb2msb"
Packit Service db44fb
will force data to be written with the
Packit Service db44fb
.I Fill\%Order
Packit Service db44fb
tag set to
Packit Service db44fb
.SM LSB2MSB ,
Packit Service db44fb
while
Packit Service db44fb
.B "\-f msb2lsb"
Packit Service db44fb
will force data to be written with the
Packit Service db44fb
.I Fill\%Order
Packit Service db44fb
tag set to
Packit Service db44fb
.SM MSB2LSB .
Packit Service db44fb
.TP
Packit Service db44fb
.B \-t
Packit Service db44fb
Set the threshold value for dithering.
Packit Service db44fb
By default the threshold value is 128.
Packit Service db44fb
.SH NOTES
Packit Service db44fb
The dither algorithm is taken from the
Packit Service db44fb
.BR tiffmedian (1)
Packit Service db44fb
program (written by Paul Heckbert).
Packit Service db44fb
.SH "SEE ALSO"
Packit Service db44fb
.BR pal2rgb (1),
Packit Service db44fb
.BR fax2tiff (1),
Packit Service db44fb
.BR tiffinfo (1),
Packit Service db44fb
.BR tiffcp (1),
Packit Service db44fb
.BR tiff2bw (1),
Packit Service db44fb
.BR libtiff (3TIFF)
Packit Service db44fb
.PP
Packit Service db44fb
Libtiff library home page:
Packit Service db44fb
.BR http://www.remotesensing.org/libtiff/