Your company here — click to reach over 10,000 unique daily visitors

gplcpt - Man Page

convert GIMP colour palette (gpl) to GMT colour palette table (cpt).


gplcpt [-b rgb] [-f rgb] [-h] [-n rgb] [-o file] [-v] [-V] [file]


The gplcpt program converts GIMP(1) colour palette (gpl) files to the GMT(1) colour palette table (cpt) format. The output is a piecewise constant (step or discrete) gradient. One could use cptcont(1) program to convert the output to a continuous cpt file if so desired.

The program will read from stdin if a file is not specified as the final argument, and write to stdout if the -o option is not specified.


In the following, all rgb specifications should be of the form red/green/blue where the colour components are integers in the range 0 to 255.

-b,  --background rgb

Set the background colour of the output.

--backtrace-file path

Specify a file to which to write a formatted backtrace. The file will only be created if there is a backtrace created, typically when an error occurs.

--backtrace-format format

Specify the format of the backtrace written to the files specified by --backtrace-file, one of plain, xml or json.

-f,  --foreground rgb

Set the foreground colour of the output.

-h,  --help

Brief help.

-n,  --nan rgb

Set the NaN (no data) colour of the output.

-o,  --output file

Write the output to file, rather than stdout.

-v,  --verbose

Verbose operation.

-V,  --version

Version information.


J.J. Green

See Also

GIMP(1), GMT(1), cptcont(1).


6 September 2023 cptutils 1.77 User commands