RGB2YCBCR(1)
β¨ RGB2YCBCR(1) β¨
bestie. welcome to the LibTIFF corner of the man pages, section 1, where we turn boring old RGB pictures into that YCbCr glow π
πΈ NAME πΈ
rgb2ycbcr β convert non-YCbCr TIFF images to a YCbCr TIFF image π¦
π SYNOPSIS π
rgb2ycbcr [ options ] src1.tif src2.tif β¦ dst.tif
π DESCRIPTION π
okay so here's the vibe: rgb2ycbcr takes RGB color, greyscale, or bi-level TIFF images and turns them into YCbCr images by transforming and sampling the pixel data. it's giving makeover montage, no cap β¨
if you hand it multiple files on the command line, each source file gets converted into its own separate directory inside the destination file. like, one file, many directories, we contain multitudes π«Ά
by default, the chrominance samples are made by sampling 2 by 2 blocks of luminance values. you can change that up with the -h and -v options, iykyk.
output data gets compressed with the PackBits compression scheme by default. want something else? the -c option has you π
and by default, output data is compressed in strips, with the number of rows in each strip chosen so that a strip is never more than 8 kilobytes. if you wanna be the main character and set the rows per strip yourself, that's the -r option, periodt.
β OPTIONS β
-ccompress β pick the compression scheme to use when writing image data:-c nonefor no compression-c packbitsfor the PackBits compression algorithm (the default)-c jpegfor the JPEG compression algorithm-c zipfor the deflate compression algorithm-c lzwfor Lempel-Ziv & Welch
-hsize β set the horizontal sampling dimension to one of:1,2(default), or4.-rstriprows β 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.-vsize β set the vertical sampling dimension to one of:1,2(default), or4.
π SEE ALSO π
tiffinfo (1), tiffcp (1), libtiff (3tiff) β go read those too, bestie, they're iconic π
π AUTHOR π
LibTIFF contributors π«Ά
π COPYRIGHT π
1988-2025, LibTIFF contributors
not me ending the page but it's literally required: this was LibTIFF version4.7, datedJun 27, 2026. mwah π stan a good manpage, bye bestie πΈβ¨π
π¦ where this page comes from
- fedora 43: libtiff-tools 4.7.2-1.fc43
- fedora 43: libtiff-tools 4.7.2-3.fc43 Β· libtiff
- fedora 44: libtiff-tools 4.7.2-1.fc44
- fedora 44: libtiff-tools 4.7.2-3.fc44 Β· libtiff
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms