xref: /libtiff-4.0.7/html/man/tiff2bw.1.html (revision fd935fb2)
1<html>
2<head>
3<meta name="generator" content="groff -Thtml, see www.gnu.org">
4<meta name="Content-Style" content="text/css">
5<title>TIFF2BW</title>
6</head>
7<body>
8
9<h1 align=center>TIFF2BW</h1>
10<a href="#NAME">NAME</a><br>
11<a href="#SYNOPSIS">SYNOPSIS</a><br>
12<a href="#DESCRIPTION">DESCRIPTION</a><br>
13<a href="#OPTIONS">OPTIONS</a><br>
14<a href="#SEE ALSO">SEE ALSO</a><br>
15
16<hr>
17<!-- Creator     : groff version 1.18 -->
18<!-- CreationDate: Mon Oct  7 17:36:37 2002 -->
19<a name="NAME"></a>
20<h2>NAME</h2>
21<!-- INDENTATION -->
22<p><table width="100%" border=0 rules="none" frame="void"
23       cols="2" cellspacing="0" cellpadding="0">
24<tr valign="top" align="left">
25<td width="8%"></td>
26<td width="91%">
27<p>tiff2bw &minus; convert a color <small>TIFF</small> image
28to greyscale</p>
29</td>
30</table></p>
31<a name="SYNOPSIS"></a>
32<h2>SYNOPSIS</h2>
33<!-- INDENTATION -->
34<p><table width="100%" border=0 rules="none" frame="void"
35       cols="2" cellspacing="0" cellpadding="0">
36<tr valign="top" align="left">
37<td width="8%"></td>
38<td width="91%">
39<p><b>tiff2bw</b> [ options ] <i>input.tif
40output.tif</i></p>
41</td>
42</table></p>
43<a name="DESCRIPTION"></a>
44<h2>DESCRIPTION</h2>
45<!-- INDENTATION -->
46<p><table width="100%" border=0 rules="none" frame="void"
47       cols="2" cellspacing="0" cellpadding="0">
48<tr valign="top" align="left">
49<td width="8%"></td>
50<td width="91%">
51<p><i>Tiff2bw</i> converts an <small>RGB</small> or Palette
52color <small>TIFF</small> image to a greyscale image by
53combining percentages of the red, green, and blue channels.
54By default, output samples are created by taking 28% of the
55red channel, 59% of the green channel, and 11% of the blue
56channel. To alter these percentages, the <b>&minus;R</b>,
57<b>&minus;G</b>, and <b>&minus;B</b> options may be
58used.</p>
59</td>
60</table></p>
61<a name="OPTIONS"></a>
62<h2>OPTIONS</h2>
63<!-- TABS -->
64<p><table width="100%" border=0 rules="none" frame="void"
65       cols="5" cellspacing="0" cellpadding="0">
66<tr valign="top" align="left">
67<td width="10%"></td>
68<td width="3%">
69
70<p><b>&minus;c</b></p>
71</td>
72<td width="5%"></td>
73<td width="80%">
74
75<p>Specify a compression scheme to use when writing image
76data: <b>&minus;c none</b> for no compression, <b>-c
77packbits</b> for the PackBits compression algorithm, <b>-c
78zip</b> for the Deflate compression algorithm, <b>-c g3</b>
79for the CCITT Group 3 compression algorithm, <b>-c g4</b>
80for the CCITT Group 4 compression algorithm, and <b>&minus;c
81lzw</b> for Lempel-Ziv &amp; Welch (the default).</p>
82</td>
83<td width="0%">
84</td>
85<tr valign="top" align="left">
86<td width="10%"></td>
87<td width="3%">
88
89<p><b>&minus;r</b></p>
90</td>
91<td width="5%"></td>
92<td width="80%">
93
94<p>Write data with a specified number of rows per strip; by
95default the number of rows/strip is selected so that each
96strip is approximately 8 kilobytes.</p>
97</td>
98<td width="0%">
99</td>
100<tr valign="top" align="left">
101<td width="10%"></td>
102<td width="3%">
103
104<p><b>&minus;R</b></p>
105</td>
106<td width="5%"></td>
107<td width="80%">
108
109<p>Specify the percentage of the red channel to use
110(default 28).</p>
111</td>
112<td width="0%">
113</td>
114<tr valign="top" align="left">
115<td width="10%"></td>
116<td width="3%">
117
118<p><b>&minus;G</b></p>
119</td>
120<td width="5%"></td>
121<td width="80%">
122
123<p>Specify the percentage of the green channel to use
124(default 59).</p>
125</td>
126<td width="0%">
127</td>
128<tr valign="top" align="left">
129<td width="10%"></td>
130<td width="3%">
131
132<p><b>&minus;B</b></p>
133</td>
134<td width="5%"></td>
135<td width="80%">
136
137<p>Specify the percentage of the blue channel to use
138(default 11).</p>
139</td>
140<td width="0%">
141</td>
142</table></p>
143<a name="SEE ALSO"></a>
144<h2>SEE ALSO</h2>
145<!-- INDENTATION -->
146<p><table width="100%" border=0 rules="none" frame="void"
147       cols="2" cellspacing="0" cellpadding="0">
148<tr valign="top" align="left">
149<td width="8%"></td>
150<td width="91%">
151<p><i>pal2rgb</i>(1), <i>tiffinfo</i>(1), <i>tiffcp</i>(1),
152<i>tiffmedian</i>(1), <i>libtiff</i>(3)</p>
153</td>
154</table></p>
155<hr>
156</body>
157</html>
158