xref: /libtiff-4.0.7/html/man/tiff2bw.1.html (revision e49fae91)
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2<HTML><HEAD><TITLE>Manpage of TIFF2BW</TITLE>
3</HEAD><BODY BGCOLOR=WHITE><FONT FACE="helvetica, sans, arial">
4<H1>TIFF2BW</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">&nbsp;</A>
10<H2>NAME</H2>
11
12tiff2bw - convert a color
13<FONT SIZE="-1">TIFF</FONT>
14image to greyscale
15<A NAME="lbAC">&nbsp;</A>
16<H2>SYNOPSIS</H2>
17
18<B>tiff2bw</B>
19
20[
21options
22]
23<I>input.tif</I>
24
25<I>output.tif</I>
26
27<A NAME="lbAD">&nbsp;</A>
28<H2>DESCRIPTION</H2>
29
30<I>Tiff2bw</I>
31
32converts an
33<FONT SIZE="-1">RGB</FONT>
34or Palette color
35<FONT SIZE="-1">TIFF</FONT>
36image to a greyscale image by
37combining percentages of the red, green, and blue channels.
38By default, output samples are created by taking
3928% of the red channel, 59% of the green channel, and 11% of
40the blue channel.
41To alter these percentages, the
42<B>-R</B>,
43
44<B>-G</B>,
45
46and
47<B>-B</B>
48
49options may be used.
50<A NAME="lbAE">&nbsp;</A>
51<H2>OPTIONS</H2>
52
53<DL COMPACT>
54<DT><B>-c</B>
55
56<DD>
57Specify a compression scheme to use when writing image data:
58<B>-c none</B>
59
60for no compression,
61<B>-c packbits</B>
62
63for the PackBits compression algorithm,
64<B>-c zip</B>
65
66for the Deflate compression algorithm,
67<B>-c g3</B>
68
69for the CCITT Group 3 compression algorithm,
70<B>-c g4</B>
71
72for the CCITT Group 4 compression algorithm,
73and
74<B>-c lzw</B>
75
76for Lempel-Ziv &amp; Welch (the default).
77<DT><B>-r</B>
78
79<DD>
80Write data with a specified number of rows per strip;
81by default the number of rows/strip is selected so that each strip
82is approximately 8 kilobytes.
83<DT><B>-R</B>
84
85<DD>
86Specify the percentage of the red channel to use (default 28).
87<DT><B>-G</B>
88
89<DD>
90Specify the percentage of the green channel to use (default 59).
91<DT><B>-B</B>
92
93<DD>
94Specify the percentage of the blue channel to use (default 11).
95</DL>
96<A NAME="lbAF">&nbsp;</A>
97<H2>SEE ALSO</H2>
98
99<I><A HREF="pal2rgb+1.html">pal2rgb</A></I>(1),
100
101<I><A HREF="tiffinfo+1.html">tiffinfo</A></I>(1),
102
103<I><A HREF="tiffcp+1.html">tiffcp</A></I>(1),
104
105<I><A HREF="tiffmedian+1.html">tiffmedian</A></I>(1),
106
107<I><A HREF="libtiff+3">libtiff</A></I>(3)
108
109
110<HR>
111<A NAME="index">&nbsp;</A><H2>Index</H2>
112<DL>
113<DT><A HREF="#lbAB">NAME</A><DD>
114<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
115<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
116<DT><A HREF="#lbAE">OPTIONS</A><DD>
117<DT><A HREF="#lbAF">SEE ALSO</A><DD>
118</DL>
119<HR>
120This document was created by
121<A HREF="index.html">man2html</A>,
122using the manual pages.<BR>
123Time: 01:31:47 GMT, November 23, 1999
124</BODY>
125</HTML>
126