RGB2PCT(1) GDAL RGB2PCT(1) (NAME) rgb2pct - RGB (SYNOPSIS) rgb2pct [--help] [--help-general] [--creation-option OPTION] [-n colors | -pct palette_file] [-of format] (DESCRIPTION) (median cut) RGB (pseudo-color) RGB . . - (Floyd-Steinberg dithering ) . : rgb2pct GDAL . : "gdal": gdal raster rgb-to-palette . --help . --help-general GDAL . -n . 256 . 2 256 . --creation-option OPTION GeoTIFF "COMPRESS=LZW". . -pct . . GDAL (txt qml qlr) . -of . . . . RGB. . (EXIT STATUS) 0 ( ). (EXAMPLES) GDAL VRT . VRT RGBA 238/238/238/255 237/237/237/255 236/236/236/255 229/229/229/255 . $ rgb2pct -pct palette.vrt rgb.tif pseudo-colored.tif $ more < palette.vrt Palette (AUTHORS) Frank Warmerdam (COPYRIGHT) 1998-2026 August 18, 2026 RGB2PCT(1)