1RGB2YCBCR(1) General Commands Manual RGB2YCBCR(1)
2
3
4
6 rgb2ycbcr - convert non-YCbCr TIFF images to a YCbCr TIFF image
7
9 rgb2ycbcr [ options ] src1.tif src2.tif ... dst.tif
10
12 rgb2ycbcr converts RGB color, greyscale, or bi-level TIFF images to
13 YCbCr images by transforming and sampling pixel data. If multiple files
14 are specified on the command line each source file is converted to a
15 separate directory in the destination file.
16
17 By default, chrominance samples are created by sampling 2 by 2 blocks
18 of luminance values; this can be changed with the -h and -v options.
19 Output data are compressed with the PackBits compression scheme, by
20 default; an alternate scheme can be selected with the -c option. By
21 default, output data are compressed in strips with the number of rows
22 in each strip selected so that the size of a strip is never more than 8
23 kilobytes; the -r option can be used to explicitly set the number of
24 rows per strip.
25
27 -c Specify a compression scheme to use when writing image data: -c
28 none for no compression, -c packbits for the PackBits compresā
29 sion algorithm (the default), -c jpeg for the JPEG compression
30 algorithm, -c zip for the deflate compression algorithm, and -c
31 lzw for Lempel-Ziv & Welch.
32
33 -h Set the horizontal sampling dimension to one of: 1, 2 (default),
34 or 4.
35
36 -r Write data with a specified number of rows per strip; by default
37 the number of rows/strip is selected so that each strip is
38 approximately 8 kilobytes.
39
40 -v Set the vertical sampling dimension to one of: 1, 2 (default),
41 or 4.
42
44 tiffinfo(1), tiffcp(1), libtiff(3)
45
46 Libtiff library home page: http://www.remotesensing.org/libtiff
47
48
49
50libtiff November 2, 2005 RGB2YCBCR(1)