.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "RGB2YCBCR" "1" "Jan 27, 2024" "4.5" "LibTIFF" .SH NAME rgb2ycbcr \- convert non-YCbCr TIFF images to a YCbCr TIFF image .SH SYNOPSIS .sp \fBrgb2ycbcr\fP [ \fIoptions\fP ] \fIsrc1.tif src2.tif … dst.tif\fP .SH DESCRIPTION .sp \fBrgb2ycbcr\fP converts RGB color, greyscale, or bi\-level TIFF images to YCbCr images by transforming and sampling pixel data. If multiple files are specified on the command line each source file is converted to a separate directory in the destination file. .sp By default, chrominance samples are created by sampling 2 by 2 blocks of luminance values; this can be changed with the \fI\%\-h\fP and \fI\%\-v\fP options. Output data are compressed with the \fBPackBits\fP compression scheme, by default; an alternate scheme can be selected with the \fI\%\-c\fP option. By default, output data are compressed in strips with the number of rows in each strip selected so that the size of a strip is never more than 8 kilobytes; the \fI\%\-r\fP option can be used to explicitly set the number of rows per strip. .SH OPTIONS .INDENT 0.0 .TP .B \-c compress Specify a compression scheme to use when writing image data: \fB\-c none\fP for no compression, \fB\-c packbits\fP for the PackBits compression algorithm (the default), \fB\-c jpeg\fP for the JPEG compression algorithm, \fB\-c zip\fP for the deflate compression algorithm, and \fB\-c lzw\fP for Lempel\-Ziv & Welch. .UNINDENT .INDENT 0.0 .TP .B \-h size Set the horizontal sampling dimension to one of: 1, 2 (default), or 4. .UNINDENT .INDENT 0.0 .TP .B \-r striprows Write data with a specified number of rows per strip; by default the number of rows/strip is selected so that each strip is approximately 8 kilobytes. .UNINDENT .INDENT 0.0 .TP .B \-v size Set the vertical sampling dimension to one of: 1, 2 (default), or 4. .UNINDENT .SH SEE ALSO .sp \fI\%tiffinfo\fP (1), \fI\%tiffcp\fP (1), \fI\%libtiff\fP (3tiff) .SH AUTHOR LibTIFF contributors .SH COPYRIGHT 1988-2024, LibTIFF contributors .\" Generated by docutils manpage writer. .