GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PCT2RGB(1) GDAL PCT2RGB(1)

pct2rgb - Convert an 8bit paletted image to 24bit RGB.

pct2rgb [--help] [--help-general]

[-of format] [-b band] [-rgba] [-pct palette_file] <source_file> <dest_file>


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.


Show this help message and exit

--help-general
Gives a brief usage message for the generic GDAL commandline options and exit.

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.

Band to convert to RGB, defaults to 1.

Generate a RGBA file (instead of a RGB file by default).

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.

Frank Warmerdam <warmerdam@pobox.com>, Silke Reimer <silke@intevation.de>

1998-2025

May 6, 2025

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.