1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> 2<HTML><HEAD><TITLE>Manpage of TIFFDITHER</TITLE> 3</HEAD><BODY BGCOLOR=WHITE><FONT FACE="helvetica, sans, arial"> 4<H1>TIFFDITHER</H1> 5Section: User Commands (1)<BR>Updated: October 15, 1995<BR><A HREF="#index">Index</A> 6<BR><A HREF="index.html">Return to Main Contents</A> 7<HR> 8 9<A NAME="lbAB"> </A> 10<H2>NAME</H2> 11 12tiffdither - convert a greyscale image to bilevel using dithering 13<A NAME="lbAC"> </A> 14<H2>SYNOPSIS</H2> 15 16<B>tiffdither</B> 17 18[ 19<I>options</I> 20 21] 22<I>input.tif</I> 23 24<I>output.tif</I> 25 26<A NAME="lbAD"> </A> 27<H2>DESCRIPTION</H2> 28 29<I>tiffdither</I> 30 31converts a single channel 8-bit greyscale image to a bilevel image 32using Floyd-Steinberg error propagation with threholding. 33<A NAME="lbAE"> </A> 34<H2>OPTIONS</H2> 35 36<DL COMPACT> 37<DT><B>-c</B> 38 39<DD> 40Specify the compression to use for data written to the output file: 41<B>none </B> 42 43for no compression, 44<B>packbits</B> 45 46for PackBits compression, 47<B>lzw</B> 48 49for Lempel-Ziv & Welch compression, 50<B>zip</B> 51 52for Deflate compression, 53<B>g3</B> 54 55for CCITT Group 3 (T.4) compression, 56and 57<B>g4</B> 58 59for CCITT Group 4 (T.6) compression. 60By default 61<I>tiffdither</I> 62 63will compress data according to the value of the 64<I>Compression</I> 65 66tag found in the source file. 67<DT><DD> 68The 69<FONT SIZE="-1">CCITT</FONT> 70Group 3 and Group 4 compression algorithms can only 71be used with bilevel data. 72<DT><DD> 73Group 3 compression can be specified together with several 74T.4-specific options: 75<B>1d</B> 76 77for 1-dimensional encoding, 78<B>2d</B> 79 80for 2-dimensional encoding, 81and 82<B>fill</B> 83 84to force each encoded scanline to be zero-filled so that the 85terminating EOL code lies on a byte boundary. 86Group 3-specific options are specified by appending a ``:''-separated 87list to the ``g3'' option; e.g. 88<B>-c g3:2d:fill</B> 89 90to get 2D-encoded data with byte-aligned EOL codes. 91<DT><DD> 92<FONT SIZE="-1">LZW</FONT> 93compression can be specified together with a 94<I>predictor</I> 95 96value. 97A predictor value of 2 causes 98each scanline of the output image to undergo horizontal 99differencing before it is encoded; a value 100of 1 forces each scanline to be encoded without differencing. 101LZW-specific options are specified by appending a ``:''-separated 102list to the ``lzw'' option; e.g. 103<B>-c lzw:2</B> 104 105for 106<FONT SIZE="-1">LZW</FONT> 107compression with horizontal differencing. 108<DT><B>-f</B> 109 110<DD> 111Specify the bit fill order to use in writing output data. 112By default, 113<I>tiffdither</I> 114 115will create a new file with the same fill order as the original. 116Specifying 117<B>-f lsb2msb</B> 118 119will force data to be written with the FillOrder tag set to 120<FONT SIZE="-1">LSB2MSB ,</FONT> 121while 122<B>-f msb2lsb</B> 123 124will force data to be written with the FillOrder tag set to 125<FONT SIZE="-1">MSB2LSB .</FONT> 126<DT><B>-t</B> 127 128<DD> 129Set the threshold value for dithering. 130By default the threshold value is 128. 131</DL> 132<A NAME="lbAF"> </A> 133<H2>NOTES</H2> 134 135The dither algorithm is taken from the 136<I><A HREF="tiffmedian+1.html">tiffmedian</A></I>(1) 137 138program (written by Paul Heckbert). 139<A NAME="lbAG"> </A> 140<H2>SEE ALSO</H2> 141 142<I><A HREF="pal2rgb+1.html">pal2rgb</A></I>(1), 143 144<I><A HREF="fax2tiff+1.html">fax2tiff</A></I>(1), 145 146<I><A HREF="tiffinfo+1.html">tiffinfo</A></I>(1), 147 148<I><A HREF="tiffcp+1.html">tiffcp</A></I>(1), 149 150<I><A HREF="tiff2bw+1.html">tiff2bw</A></I>(1), 151 152<I><A HREF="libtiff+3">libtiff</A></I>(3) 153 154 155<HR> 156<A NAME="index"> </A><H2>Index</H2> 157<DL> 158<DT><A HREF="#lbAB">NAME</A><DD> 159<DT><A HREF="#lbAC">SYNOPSIS</A><DD> 160<DT><A HREF="#lbAD">DESCRIPTION</A><DD> 161<DT><A HREF="#lbAE">OPTIONS</A><DD> 162<DT><A HREF="#lbAF">NOTES</A><DD> 163<DT><A HREF="#lbAG">SEE ALSO</A><DD> 164</DL> 165<HR> 166This document was created by 167<A HREF="index.html">man2html</A>, 168using the manual pages.<BR> 169Time: 01:31:48 GMT, November 23, 1999 170</BODY> 171</HTML> 172