Man page - pct2rgb(1)
Packages contains this manual
- gdaladdo(1)
- ogrlineref(1)
- gdal2tiles(1)
- gdal_edit(1)
- gdalsrsinfo(1)
- gdaltransform(1)
- gdal_footprint(1)
- pct2rgb(1)
- gdal_rasterize(1)
- gdal_retile(1)
- gdalinfo(1)
- ogrmerge(1)
- ogrinfo(1)
- sozip(1)
- gdal_merge(1)
- gdalmdimtranslate(1)
- gdallocationinfo(1)
- gdal_translate(1)
- gdalmove(1)
- ogr_layer_algebra(1)
- gdalbuildvrt(1)
- nearblack(1)
- rgb2pct(1)
- gdal_create(1)
- gdal_polygonize(1)
- gdalmdiminfo(1)
- gdal_contour(1)
- gdalcompare(1)
- gdalwarp(1)
- gdal_pansharpen(1)
- gdal_calc(1)
- gdaldem(1)
- gdal_sieve(1)
- gnmanalyse(1)
- ogrtindex(1)
- gdaltindex(1)
- gnmmanage(1)
- gdal_fillnodata(1)
- gdal_proximity(1)
- gdal_viewshed(1)
- gdalmanage(1)
- ogr2ogr(1)
- gdal_grid(1)
apt-get install gdal-bin
Manual
PCT2RGB
NAMESYNOPSIS
DESCRIPTION
AUTHOR
COPYRIGHT
NAME
pct2rgb - Convert an 8bit paletted image to 24bit RGB.
SYNOPSIS
pct2rgb [--help] [--help-general]
[-of format] [-b band] [-rgba] [-pct palette_file] <source_file> <dest_file>
DESCRIPTION
This utility will convert a pseudo-color band on the input file into an output RGB file of the desired format.
NOTE:
pct2rgb is a Python utility, and is only available if GDAL Python bindings are available.
|
--help |
Show this help message and exit |
--help-general
Gives a brief usage message for the generic GDAL commandline options and exit.
-of <format>
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>
Band to convert to RGB, defaults to 1.
|
-rgba |
Generate a RGBA file (instead of a RGB file by default). |
-pct <palette_file>
Extract the color table from <palette_file> instead of getting it from <source_file>. Can be used to have a consistent color table for multiple files. The <palette_file> 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).
<source_file>
The input file.
<dest_file>
The output RGB file that will be created.
The '-expand rgb|rgba' option of gdal_translate obsoletes that utility.
AUTHOR
Frank Warmerdam <warmerdam@pobox.com>, Silke Reimer <silke@intevation.de>
COPYRIGHT
1998-2025