Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
CPTSVG(1)			 User commands			     CPTSVG(1)

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

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

DESCRIPTION
       The cptsvg utility converts the colour palette table (cpt) files	used
       by GMT(1) to the	gradients in the Scalar	Vector Graphics	(SVG) format.

       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.

       The output is formatted for machines to read, rather than humans. A
       post-processor such as tidy(1) could be used in the latter case.

OPTIONS
       --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.

       -g, --geometry widthxheight
	   Specify the size of the SVG preview in pixels.

       -h, --help
	   Brief help.

       -o, --output file
	   Write the output to file, rather than stdout.

       -p, --preview
	   Include a preview in	the SVG	output.	See also the --geometry
	   option.

       -v, --verbose
	   Verbose operation.

       -V, --version
	   Version information.

EXAMPLES
       Create a	machine-readable SVG file:

	   cptsvg -v -o	new.svg	old.cpt

       Create a	human-readable SVG file	with a preview:

	   cptsvg -p old.cpt | tidy -xml -indent -o new.svg

AUTHOR
       J.J. Green

SEE ALSO
       GMT(1), tidy(1).

CPTUTILS			  22 Feb 2017			     CPTSVG(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLES | AUTHOR | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=cptsvg&sektion=1&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help