Pct2rgb.py convert an 8bit paletted image to 24bit rgb
pct2rgb.py [-of format] [-b band] [-rgba] source_file dest_file
This utility will convert a pseudocolor band on the input file into an output RGB file of the desired format.
Format to generated (defaults to GeoTIFF).
Band to convert to RGB, defaults to 1.
Generate a RGBA file (instead of a RGB file by default).
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 new '-expand rgb|rgba' option of gdal_translate obsoletes that utility.
Frank Warmerdam [email protected], Silke Reimer [email protected]