GDAL-RASTER-RGB-TO-PALETTE(1) GDAL GDAL-RASTER-RGB-TO-PALETTE(1) (NAME) gdal-raster-rgb-to-palette - RGB / 3.12. (SYNOPSIS) Usage: gdal raster rgb-to-palette [OPTIONS] Convert a RGB image into a pseudo-color / paletted image. Positional arguments: -i, --input [] [ ] -o, --output [] [ ] Common Options: -h, --help --json-usage JSON --config = [ ] -q, --quiet ( ) [ ] Options: -f, --of, --format, --output-format ( "GDALG" ) [ ] --co, --creation-option = [ ] [ ] --overwrite [ ] --append --append [ ] --overwrite --color-count (: 256) --color-map --output-nodata nodata --no-dither - --bit-depth ( ). BIT-DEPTH=5|8 (: 5) Advanced Options: --if, --input-format [ ] [ ] --oo, --open-option = [ ] [ ] (DESCRIPTION) gdal raster rgb-to-palette (pseudo-color) RGB (median cut) RGB --color-map . . - (Floyd-Steinberg dithering ) . gdal raster pipeline . GDALG ( / ) (GDALG OUTPUT (ON-THE-FLY / STREAMED DATASET)) JSON GDALG . GDALG: GDAL Streamed Algorithm / (on-the-fly / streamed) . : . . (PROGRAM-SPECIFIC OPTIONS) --color-count . . . --color-map . . GDAL (.txt QGIS .qml QGIS .qlr). --output-nodata 3.13. nodata nodata ( ) . nodata . nodata --output-nodata . --no-dither 3.13. - ( ). <<>> . --bit-depth 5|8 3.13. R G B . = ^ . . (STANDARD OPTIONS) --co, --creation-option = . GeoTIFF (tiled) . . . --formats . Raster drivers . -f, --of, --format, --output-format . : gdal --formats | grep raster | grep rw | sort --overwrite . gdal . (EXIT STATUS) ( ). (EXAMPLES) TIFF PNG $ gdal raster rgb-to-palette input.tif output.png (AUTHORS) Even Rouault (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-RASTER-RGB-TO-PALETTE(1)