]>
Commit | Line | Data |
---|---|---|
8414a40c VZ |
1 | .\" $Id: tiff2bw.1,v 1.2 2005/11/02 11:07:19 dron Exp $ |
2 | .\" | |
3 | .\" Copyright (c) 1988-1997 Sam Leffler | |
4 | .\" Copyright (c) 1991-1997 Silicon Graphics, Inc. | |
5 | .\" | |
6 | .\" Permission to use, copy, modify, distribute, and sell this software and | |
7 | .\" its documentation for any purpose is hereby granted without fee, provided | |
8 | .\" that (i) the above copyright notices and this permission notice appear in | |
9 | .\" all copies of the software and related documentation, and (ii) the names of | |
10 | .\" Sam Leffler and Silicon Graphics may not be used in any advertising or | |
11 | .\" publicity relating to the software without the specific, prior written | |
12 | .\" permission of Sam Leffler and Silicon Graphics. | |
13 | .\" | |
14 | .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, | |
15 | .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY | |
16 | .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. | |
17 | .\" | |
18 | .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR | |
19 | .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, | |
20 | .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | |
21 | .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF | |
22 | .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE | |
23 | .\" OF THIS SOFTWARE. | |
24 | .\" | |
25 | .if n .po 0 | |
26 | .TH TIFF2BW 1 "November 2, 2005" "libtiff" | |
27 | .SH NAME | |
28 | tiff2bw \- convert a color | |
29 | .SM TIFF | |
30 | image to greyscale | |
31 | .SH SYNOPSIS | |
32 | .B tiff2bw | |
33 | [ | |
34 | options | |
35 | ] | |
36 | .I input.tif | |
37 | .I output.tif | |
38 | .SH DESCRIPTION | |
39 | .I Tiff2bw | |
40 | converts an | |
41 | .SM RGB | |
42 | or Palette color | |
43 | .SM TIFF | |
44 | image to a greyscale image by | |
45 | combining percentages of the red, green, and blue channels. | |
46 | By default, output samples are created by taking | |
47 | 28% of the red channel, 59% of the green channel, and 11% of | |
48 | the blue channel. | |
49 | To alter these percentages, the | |
50 | .BR \-R , | |
51 | .BR \-G , | |
52 | and | |
53 | .BR \-B | |
54 | options may be used. | |
55 | .SH OPTIONS | |
56 | .TP | |
57 | .B \-c | |
58 | Specify a compression scheme to use when writing image data: | |
59 | .B "\-c none" | |
60 | for no compression, | |
61 | .B "-c packbits" | |
62 | for the PackBits compression algorithm, | |
63 | .B "-c zip | |
64 | for the Deflate compression algorithm, | |
65 | .B "-c g3 | |
66 | for the CCITT Group 3 compression algorithm, | |
67 | .B "-c g4 | |
68 | for the CCITT Group 4 compression algorithm, | |
69 | and | |
70 | .B "\-c lzw" | |
71 | for Lempel-Ziv & Welch (the default). | |
72 | .TP | |
73 | .B \-r | |
74 | Write data with a specified number of rows per strip; | |
75 | by default the number of rows/strip is selected so that each strip | |
76 | is approximately 8 kilobytes. | |
77 | .TP | |
78 | .B \-R | |
79 | Specify the percentage of the red channel to use (default 28). | |
80 | .TP | |
81 | .B \-G | |
82 | Specify the percentage of the green channel to use (default 59). | |
83 | .TP | |
84 | .B \-B | |
85 | Specify the percentage of the blue channel to use (default 11). | |
86 | .SH "SEE ALSO" | |
87 | .BR pal2rgb (1), | |
88 | .BR tiffinfo (1), | |
89 | .BR tiffcp (1), | |
90 | .BR tiffmedian (1), | |
91 | .BR libtiff (3) | |
92 | .PP | |
93 | Libtiff library home page: | |
94 | .BR http://www.remotesensing.org/libtiff/ |