PCT2RGB(1) GDAL PCT2RGB(1) NAME pct2rgb - Convert an 8bit paletted image to 24bit RGB. SYNOPSIS pct2rgb.py [--help] [--help-general] [-of format] [-b band] [-rgba] [-pct palette_file] DESCRIPTION This utility will convert a pseudo-color band on the input file into an output RGB file of the desired format. --help Show this help message and exit --help-general Gives a brief usage message for the generic GDAL commandline options and exit. -of Select the output format. Starting with GDAL 2.3, if not specified, the format is guessed from the extension (previously was GTiff). Use the short format name. -b Band to convert to RGB, defaults to 1. -rgba Generate a RGBA file (instead of a RGB file by default). -pct Extract the color table from instead of getting it from . Can be used to have a consistent color table for multiple files. The must be either a raster file in a GDAL supported format with a palette or a color file in a supported format (txt, qml, qlr). The input file. The output RGB file that will be created. NOTE: pct2rgb.py is a Python script, and will only work if GDAL was built with Python support. The '-expand rgb|rgba' option of gdal_translate obsoletes that utility. AUTHOR Frank Warmerdam , Silke Reimer COPYRIGHT 1998-2024 April 2, 2024 PCT2RGB(1)