pspsvg (1) - Linux Manuals
pspsvg: convert PaintShop Pro® gradients (jgd, PspGradient) to the SVG format.
pspsvg - convert PaintShop Pro® gradients (jgd, PspGradient) to the SVG format.
geometry] [-h] [-o file] [-p] [-v] [-V] [file]
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.
-g, --geometry widthxheight
- Specify the size of the SVG preview in pixels.
- Brief help.
-o, --output file
- Write the output to file, rather than stdout.
- Include a preview in the SVG output. See also the --geometry option.
- Verbose operation.
- Version information.
Create a machine-readable SVG file:
pspsvg -v -o new.svg old.jgd
Create a human-readable SVG file:
pspsvg old.jgd | tidy -xml -indent -o new.svg
The author could find no public documentation for the PaintShop Pro gradient file format and so has reverse-engineered it. A technical description of the format can be found in the file src/common/README.psp included in the cptutils source distribution.
The PaintShop Pro format can be read by Photoshop, but Photoshop's native (grd) gradient format cannot be read by this program. To convert Photoshop gradients, see the pssvg(1) documentation.