PAL2RGB(1)
β¨ PAL2RGB π
okay bestie, so this is a page from the LibTIFF manual set, section 1 β the PAL2RGB(1) one β and it's about a lil program called pal2rgb. it's giving "quiet little utility that does one thing perfectly." we love that for it. π
πΈ NAME πΈ
pal2rgb β convert a palette color TIFF image to a full color image
π¦ SYNOPSIS π¦
pal2rgb [ options ] input.tif output.tif
π DESCRIPTION π
so basically, pal2rgb takes a palette color image and turns it into a full color image. the way it does that is by applying the colormap of the palette image to each sample, and that's what generates a full color RGB image. iconic behavior honestly. β¨
π OPTIONS π
π Options that affect the interpretation of input data are:
-C numentriesβ this one overridespal2rgb's default behavior when it's figuring out whether colormap entries contain 16-bit or 8-bit values. by default it inspects the colormap, and if it doesn't find any colormap entry greater than255, it assumes the colormap only has 8-bit values; otherwise it assumes 16-bit values (which, fyi, is what the TIFF specification requires). so-Clets you explicitly state the number of bits for colormap entries:-C 8for 8-bit values,-C 16for 16-bit values. no guessing games, periodt. π
π¨ Options that affect the output file format are:
-p planarconfigβ explicitly pick the planar configuration used to organize data samples in the output image:-p contigfor samples packed contiguously, and-p separatefor samples stored separately. by default, samples are packed. contig girlies rise π«Ά-c compressβ use the specified compression algorithm to encode the image data in the output file:-c packbitsfor Macintosh Packbits,-c lzwfor Lempel-Ziv & Welch,-c zipfor Deflate,-c nonefor no compression. and if you don't specify any compression-related option at all? then the input file's compression algorithm is used. lowkey generous of it π-r striprowsβ explicitly specify the number of rows in each strip of the output file. if the-roption isn't specified, a number gets selected so that each output strip has approximately 8 kilobytes of data in it. β¨
π BUGS π
bestie. brace yourself. Only 8-bit images are handled. that's it, that's the whole limitation. 8-bit only. no cap. π
π SEE ALSO π
tiffinfo (1)tiffcp (1)tiffmedian (1)libtiff (3tiff)
π AUTHOR π
LibTIFF contributors β the real ones, fr fr π
π COPYRIGHT π
1988-2025, LibTIFF contributors
and that's the whole page bestie, go convert something π¦π
so this was LibTIFF, version 4.7, dated Jun 27, 2026 β and honestly? she ate. π
β¨πΈ
π¦ 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