Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/doc/tools/tiff2bw.rst

raw
1 tiff2bw
2 =======
3
4 .. program:: tiff2bw
5
6 Synopsis
7 --------
8
9 **tiff2bw** [ *options* ] *input.tif* *output.tif*
10
11 Description
12 -----------
13
14 :program:`tiff2bw` converts an RGB or Palette color TIFF
15 image to a greyscale image by
16 combining percentages of the red, green, and blue channels.
17 By default, output samples are created by taking
18 28% of the red channel, 59% of the green channel, and 11% of
19 the blue channel. To alter these percentages, the
20 :option:`-R`, :option:`-G`, and :option:`-B` options may be used.
21
22 Options
23 -------
24
25 .. option:: -c compress
26
27 Specify a compression scheme to use when writing image data:
28 :command:`-c none` for no compression,
29 :command:`-c packbits` for the PackBits compression algorithm,
30 :command:`-c zip` for the Deflate compression algorithm,
31 :command:`-c g3` for the CCITT Group 3 compression algorithm,
32 :command:`-c g4` for the CCITT Group 4 compression algorithm,
33 :command:`-c lzw` for Lempel-Ziv & Welch (the default).
34
35 .. option:: -r striprows
36
37 Write data with a specified number of rows per strip;
38 by default the number of rows/strip is selected so that each strip
39 is approximately 8 kilobytes.
40
41 .. option:: -R redperc
42
43 Specify the percentage of the red channel to use (default 28).
44
45 .. option:: -G greenperc
46
47 Specify the percentage of the green channel to use (default 59).
48
49 .. option:: -B blueperc
50
51 Specify the percentage of the blue channel to use (default 11).
52
53 See also
54 --------
55
56 :doc:`pal2rgb` (1),
57 :doc:`tiffinfo` (1),
58 :doc:`tiffcp` (1),
59 :doc:`tiffmedian` (1),
60 :doc:`/functions/libtiff` (3tiff),