SVGTOIPE(1)

✨ NAME ✨

svgtoipe β€” bestie, this is the lil glow-up machine that converts a SVG file to Ipe 7 format πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

svgtoipe [-h] [-c] figure.svg [figure.ipe]

🌸 DESCRIPTION 🌸

Okay so real talk: svgtoipe takes a SVG file and turns it into an XML file that Ipe version 7 actually understands. It's giving translator, it's giving bilingual icon, it's giving your vector art speaks Ipe now ✨

Now the part where you don't name your output file (we've all been there, no shame 🫢): if you don't specify the output filename, it gets derived for you β€” either by

  • replacing .ipe at the end of the input filename with .svg, or
  • appending .ipe if the input filename does not end with with .svg

And here's a cute lil trick πŸ‘€ β€” if either the input or the output filename is --, then stdin, resp. stdout, is used to read or write data. Pipes? We love pipes. Pipes are the moment.

So the options, bestie:

  • -h β€” display a short help text. Short. Help. Iconic behaviour honestly.
  • -c β€” operate in clipboard mode. Data is output as ipe clipboard content. This allows pasting svg data from inkscape to ipe, and the whole ritual goes like this:
    1. Copy elements Inkscape to clipboard
    2. run: xsel | ./svgtoipe.py -c -- | xsel -i
    3. paste clipboard content into ipe
Not me casually pasting Inkscape art straight into Ipe like it's nothing πŸ’…

πŸŽ€ Supported SVG Features πŸŽ€

The following SVG elements are converted: path, image, rect, circle, ellipse, line, polygon, and polyline

The following SVG elements are converted: group, clipPath, linearGradient, and andradialGradient

Now the caveats, because there are always caveats 😭

  • Image conversion is only supported if python-imaging is available.
  • Text is only converted, if it has coordinates specified as attribute of the svg text element.

πŸ‘‘ AUTHOR πŸ‘‘

Otfried Cheong Christian Kapeller


πŸ”₯ SEE ALSO πŸ”₯

ipe(1)


And that's the whole page, bestie β€” this one's from the Ipe manual, dated April 2015, and honestly it ate. Slay, stay converted, mwah πŸ’–πŸ§šβ€β™€οΈ