GIMPSVG(1)

πŸ“¦ version 1.82, in fedora 43, fedora 44

πŸ’– 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 --output option? it writes to stdout. main character energy fr fr.

πŸ‘‘ OPTIONS πŸ‘‘

  • --backtrace-file path β€” 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-format format β€” pick the format for the backtrace that goes to whatever file you set with --backtrace-file. you gotta choose one of plain, xml, or json. those are the only options bestie, don't try to be creative πŸ’€
  • --comments-read path β€” 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 the cptutils package. cute little receipts 🧚
  • -g, --geometry widthxheight β€” set the size of the SVG preview, in pixels. yes it's literally width x height, keep the x in there.
  • -h, --help β€” brief help. a little snack of information 🌈
  • -o, --output path β€” write the output to path instead of stdout. giving it a home 🏠
  • -p, --preview β€” include a preview in the SVG output. also go look at the --geometry option, they're besties and they work together πŸ’–
  • -s, --samples number β€” 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. --samples specifies (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