10139N/A<!
DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
10139N/A<!
ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A<
refmeta><
refentrytitle>tiffdither</
refentrytitle><
manvolnum>1</
manvolnum>
10139N/A<
refmiscinfo class="date">26 Mar 2004</
refmiscinfo>
10139N/A<
refmiscinfo class="sectdesc">&man1;</
refmiscinfo>
10139N/A<
refmiscinfo class="software">&release;</
refmiscinfo>
10139N/A<
refmiscinfo class="arch">generic</
refmiscinfo>
10139N/A<
refmiscinfo class="copyright">&suncopy;</
refmiscinfo>
10139N/A<
indexterm><
primary>tiffdither</
primary></
indexterm><
indexterm><
primary>convert
10139N/Aa grayscale image to bilevel using dithering</
primary></
indexterm>
10139N/A<
refnamediv id="tiffdither-1-name"><
refname>tiffdither</
refname><
refpurpose>
10139N/Aconvert a grayscale image to bilevel using dithering</
refpurpose></
refnamediv>
10139N/A<
refsynopsisdiv id="tiffdither-1-synp"><
title>&synp-tt;</
title>
10139N/A<
cmdsynopsis><
command>&cmd;</
command><
arg choice="opt"><
option role="nodash"><
replaceable>
10139N/Aoptions</
replaceable></
option></
arg><
arg choice="plain" rep="norepeat"><
option 10139N/Arole="nodash"><
replaceable>
input.tif</
replaceable></
option></
arg><
arg choice="plain" 10139N/Arep="norepeat"><
option role="nodash"><
replaceable>
output.tif</
replaceable></
option></
arg>
10139N/A<
refsect1 id="tiffdither-1-desc"><
title>&desc-tt;</
title>
10139N/A<
para><
command>&cmd;</
command> converts a single-channel 8-bit grayscale image
10139N/Ato a bilevel image using Floyd-Steinberg error propagation with thresholding.
10139N/A<
refsect1 id="tiffdither-1-opts"><
title>&opts-tt;</
title>
10139N/A<
para>The following options are supported:</
para>
10139N/A<
variablelist termlength="narrow">
10139N/A<
varlistentry><
term><
option>c</
option></
term><
listitem><
para>Specify a compression
10139N/Ascheme to use when writing image data:</
para>
10139N/A<
varlistentry><
term><
option>c g3</
option></
term><
listitem><
para>CCITT Group
10139N/A<
varlistentry><
term><
option>c g4</
option></
term><
listitem><
para>CCITT Group
10139N/A<
varlistentry><
term><
option>c lzw</
option></
term><
listitem><
para>Lempel-Ziv
10139N/A<
varlistentry><
term><
option>c none</
option></
term><
listitem><
para>No compression.
10139N/A<
varlistentry><
term><
option>c packbits</
option></
term><
listitem><
para>PackBits
10139N/A<
varlistentry><
term><
option>c zip</
option></
term><
listitem><
para>Deflate compression
10139N/A</
variablelist><
para>By default, <
command>&cmd;</
command> compresses data
10139N/Aaccording to the value of the Compression tag found in the source file.</
para>
10139N/A<
varlistentry><
term><
option>f</
option></
term><
listitem><
para>Specify the bit
10139N/Afill order to use to write output data. By default, <
command>&cmd;</
command>
10139N/Acreates a new file with the same fill order as the original. Specify <
option>
10139N/Af lsb2msb</
option> to force data to be written with the FillOrder tag set
10139N/Ato LSB2MSB. Specify <
option>f msb2lsb</
option> to force data to be written
10139N/Awith the FillOrder tag set to MSB2LSB.</
para>
10139N/A<
varlistentry><
term><
option>t</
option></
term><
listitem><
para>Set the threshold
10139N/Avalue for dithering. By default, the threshold value is 128.</
para>
10139N/A<
refsect1 id="tiffdither-1-oper"><
title>&oper-tt;</
title>
10139N/A<
para>The following operands are supported:</
para>
10139N/A<
variablelist termlength="narrow">
10139N/A<
varlistentry><
term><
option role="nodash"><
replaceable>
input.tif</
replaceable></
option></
term>
10139N/A<
listitem><
para>The name of the input file.</
para>
10139N/A<
varlistentry><
term><
option role="nodash"><
replaceable>
output.tif</
replaceable></
option></
term>
10139N/A<
listitem><
para>The name of the output file.</
para>
10139N/A<
refsect1 id="tiffdither-1-exde"><
title>&exde-tt;</
title>
10139N/A<
para>The CCITT Group 3 and Group 4 compression algorithms can only be used
10139N/A<
para>Group 3 compression can be specified together with several T.4-specific
10139N/A<
varlistentry><
term><
option role="nodash">1d</
option></
term><
listitem><
para>
10139N/A<
varlistentry><
term><
option role="nodash">2d</
option></
term><
listitem><
para>
10139N/A<
varlistentry><
term><
option role="nodash">fill</
option></
term><
listitem><
para>
10139N/AForce each encoded scanline to be zero-filled so that the terminating EOL
10139N/Acode lies on a byte boundary.</
para>
10139N/A</
variablelist><
para>Group 3-specific options are specified by appending a
10139N/Acolon-separated list to the <
option role="nodash">g3</
option> option. For
10139N/Aexample, specify <
option>c</
option> <
option role="nodash">g3:2d:fill</
option>
10139N/Ato get 2D-encoded data with byte-aligned EOL codes.</
para>
10139N/A<
para>LZW compression can be specified together with a predictor value. A
10139N/Apredictor value of 2 causes each scanline of the output image to undergo horizontal
10139N/Adifferencing before being encoded. A predictor value of 1 forces each scanline
10139N/Ato be encoded without differencing.</
para>
10139N/A<
para>LZW-specific options are specified by appending a colon-separated list
10139N/Ato the <
option role="nodash">lzw</
option> option. For example, specify <
option>
10139N/Ac</
option> <
option role="nodash">lzw:2</
option> for LZW compression with horizontal
10139N/A<
refsect1 id="tiffdither-1-attr"><
title>&attr-tt;</
title>
10139N/A<
para>See <
olink targetdocent="REFMAN5" localinfo="attributes-5"><
citerefentry>
10139N/A<
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry></
olink>
10139N/Afor descriptions of the following attributes:</
para>
10139N/A<
tgroup cols="2" colsep="1" rowsep="1"><
colspec colname="COLSPEC0" colwidth="1*">
10139N/A<
colspec colname="COLSPEC1" colwidth="1*">
10139N/A<
row><
entry align="center" valign="middle">ATTRIBUTE TYPE</
entry><
entry align="center" 10139N/Avalign="middle">ATTRIBUTE VALUE</
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0"><
para>Interface stability</
para></
entry><
entry 13623N/Acolname="COLSPEC1"><
para>Uncommitted</
para></
entry></
row>
10139N/A<
refsect1 id="tiffdither-1-also"><
title>&also-tt;</
title>
10139N/A<!--Reference to another man page--> 10139N/A<!--Reference to a Help manual--> 11904N/A<
citerefentry><
refentrytitle>pal2rgb</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
11904N/A<
citerefentry><
refentrytitle>fax2tiff</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
11904N/A<
citerefentry><
refentrytitle>tiffinfo</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
11904N/A<
citerefentry><
refentrytitle>tiffcp</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
11904N/A<
citerefentry><
refentrytitle>tiff2bw</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
11904N/A<
citerefentry><
refentrytitle>libtiff</
refentrytitle><
manvolnum>3</
manvolnum></
citerefentry>
10139N/A<
refsect1 id="tiffdither-1-note"><
title>¬e-tt;</
title>
10139N/A<
para>Updated by Breda McColgan, Sun Microsystems Inc., 2004.</
para>