1PCT2RGB(1) GDAL PCT2RGB(1)
2
3
4
6 pct2rgb - Convert an 8bit paletted image to 24bit RGB.
7
9 pct2rgb.py [-of format] [-b band] [-rgba] source_file dest_file
10
12 This utility will convert a pseudo-color band on the input file into an
13 output RGB file of the desired format.
14
15 -of <format>
16 Select the output format. Starting with GDAL 2.3, if not speci‐
17 fied, the format is guessed from the extension (previously was
18 GTiff). Use the short format name.
19
20 -b <band>
21 Band to convert to RGB, defaults to 1.
22
23 -rgba Generate a RGBA file (instead of a RGB file by default).
24
25 <source_file>
26 The input file.
27
28 <dest_file>
29 The output RGB file that will be created.
30
31 NOTE: pct2rgb.py is a Python script, and will only work if GDAL was
32 built with Python support.
33
34 The '-expand rgb|rgba' option of gdal_translate obsoletes that utility.
35
37 Frank Warmerdam <warmerdam@pobox.com>, Silke Reimer <silke@inteva‐
38 tion.de>
39
41 1998-2021
42
43
44
45
46 Sep 07, 2021 PCT2RGB(1)