1CPTSVG(1)                        User commands                       CPTSVG(1)
2
3
4

NAME

6       cptsvg - convert GMT colour palette tables (cpt) to SVG gradients.
7

SYNOPSIS

9       cptsvg [-g geometry] [-h] [-o file] [-p] [-v] [-V] [file]
10

DESCRIPTION

12       The cptsvg utility converts the colour palette table (cpt) files used
13       by GMT(1) to the gradients in the Scalar Vector Graphics (SVG) format.
14
15       The program will read from stdin if a file is not specified as the
16       final argument, and write to stdout if the -o option is not specified.
17
18       The output is formatted for machines to read, rather than humans. A
19       post-processor such as tidy(1) could be used in the latter case.
20

OPTIONS

22       --backtrace-file path
23           Specify a file to which to write a formatted backtrace. The file
24           will only be created if there is a backtrace created, typically
25           when an error occurs.
26
27       --backtrace-format format
28           Specify the format of the backtrace written to the files specified
29           by --backtrace-file, one of plain, xml or json.
30
31       -g, --geometry widthxheight
32           Specify the size of the SVG preview in pixels.
33
34       -h, --help
35           Brief help.
36
37       -o, --output file
38           Write the output to file, rather than stdout.
39
40       -p, --preview
41           Include a preview in the SVG output. See also the --geometry
42           option.
43
44       -v, --verbose
45           Verbose operation.
46
47       -V, --version
48           Version information.
49

EXAMPLES

51       Create a machine-readable SVG file:
52
53           cptsvg -v -o new.svg old.cpt
54
55       Create a human-readable SVG file with a preview:
56
57           cptsvg -p old.cpt | tidy -xml -indent -o new.svg
58

AUTHOR

60       J. J. Green
61

SEE ALSO

63       GMT(1), tidy(1).
64
65
66
67CPTUTILS                          8 July 2020                        CPTSVG(1)
Impressum