GIMPSVG(1)
π GIMPSVG π
ok so real talk bestie, this is the manual page for gimpsvg from the User commands section, and it's literally about turning GIMP gradient files into SVG. yes. that's the whole vibe. let's go π¦
β¨ NAME β¨
gimpsvg β convert a GIMP gradient (ggr) to the SVG format.
like. that's it. that's the girl's whole job π
πΈ SYNOPSIS πΈ
gimpsvg [-g geometry] [-h] [-o path] [-p] [-s samples] [-v] [-V] [path]
π DESCRIPTION π
okay so here's the tea π β the gimpsvg utility converts gradient files from the GIMP (that's the GNU Image Manipulation Program, iykyk) over to the SVG format, which stands for scalar vector graphics.
and the way it handles input/output is lowkey iconic:
- no file as the final argument? it reads from stdin. slay, it's flexible like that π«Ά
- no
--outputoption? it writes to stdout. main character energy fr fr.
π OPTIONS π
--backtrace-filepath β tell it where to write a formatted backtrace. ngl the file only gets created if a backtrace actually happens, which is usually when an error occurs π so most of the time it's just. not there.--backtrace-formatformat β pick the format for the backtrace that goes to whatever file you set with--backtrace-file. you gotta choose one ofplain,xml, orjson. those are the only options bestie, don't try to be creative π--comments-readpath β read the comments from the path you specify and add them to the output gradient β¨
the format is literally just a plain text multi-line document, no comment delimiters at all β the program adds those itself. so don't stress about formatting, it handles it π
--comments-generateβ create a comment with summary data in the output file. that's the date of creation, plus the name and version of thecptutilspackage. cute little receipts π§-g,--geometrywidthxheight β set the size of the SVG preview, in pixels. yes it's literally width x height, keep thexin there.-h,--helpβ brief help. a little snack of information π-o,--outputpath β write the output to path instead ofstdout. giving it a home π-p,--previewβ include a preview in the SVG output. also go look at the--geometryoption, they're besties and they work together π-s,--samplesnumber β set the maximum number of samples. okay so here's the lore: GIMP gradients allow for complex curves across a bunch of colour-space co-ordinate systems, and to squish those into SVG's simple RGB linear splines we have to sample those complex curves pretty densely.--samplesspecifies (roughly) the maximum number of samples. BUT β if the GIMP gradient is an RGB linear spline gradient, this option does nothing at all, because in that case we can convert the segments without loss. so like, no effect, zero, nada π-v,--verboseβ verbose operation. it will tell you things. lots of things. it's a yapper π£οΈ-V,--versionβ version information β
π AUTHOR π
J.J. Green β the legend, the icon, the moment π
π SEE ALSO π
and that's the whole page bestie, no cap, we kept every single detail π
cptutils version 1.82, dated 9 July 2024 β mwah, sending you off with a kiss and a perfectly converted gradient πβ¨π¦
π¦ where this page comes from
- fedora 43: cptutils 1.82-4.fc43 Β· GPL-2.0-or-later
- fedora 44: cptutils 1.82-6.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms