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 ⭐

  • -c compress β€” pick the compression scheme to use when writing image data:
    • -c none for no compression
    • -c packbits for the PackBits compression algorithm (the default)
    • -c jpeg for the JPEG compression algorithm
    • -c zip for the deflate compression algorithm
    • -c lzw for Lempel-Ziv & Welch
  • -h size β€” set the horizontal sampling dimension to one of: 1, 2 (default), or 4.
  • -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.
  • -v size β€” set the vertical sampling dimension to one of: 1, 2 (default), or 4.

🌈 SEE ALSO 🌈

tiffinfo (1), tiffcp (1), libtiff (3tiff) β€” go read those too, bestie, they're iconic πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

LibTIFF contributors 🫢


1988-2025, LibTIFF contributors


not me ending the page but it's literally required: this was LibTIFF version 4.7, dated Jun 27, 2026. mwah πŸ’‹ stan a good manpage, bye bestie πŸŒΈβœ¨πŸŽ€
πŸ“¦ where this page comes from