The gimpsvg utility converts gradient files from the GIMP(1), the GNU Image Manipulation Program, to the SVG (scalar vector graphics) 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.
Specify the size of the SVG preview in pixels.
Write the output to
file, rather than
Include a preview in the SVG output. See also the
Specify the maximum
numberof samples. GIMP gradients allow for complex curves in a number of colour-space co-ordinate systems. In order that these can be converted into SVG's simple RGB linear splines we must sample these complex curves quite densely. The
-soption specifies (roughly) the maximum number of samples. In the case that the GIMP gradient is an RGB linear spline gradient the option has no effect, since we can then convert the segments without loss.
The program will search for gradient files
in the directories specified in
in the user's GIMP directory,
in the standard locations
version ranges over feasible version numbers.
GIMP_GRADIENTS variable is defined then each colon-separated directory therein will be searched for gradient files.