Skip to content

v1.3.6: Inkscape to Plain SVG Conversion

Choose a tag to compare

@github-actions github-actions released this 29 Jan 23:58
· 18 commits to main since this release

New Features

Inkscape SVG to Plain SVG Conversion

Convert Inkscape SVG files to standard/plain SVG while preserving SVG 2 features.

CLI Usage:

# svgm CLI
svgm --to-plain-svg inkscape.svg -o plain.svg
svgm --to-plain-svg --keep-flow-text inkscape.svg -o plain.svg

# svg-matrix CLI
svg-matrix to-plain inkscape.svg -o plain.svg

API Usage:

import { convertToPlainSVG } from '@emasoft/svg-matrix';
const plainSVG = await convertToPlainSVG(inkscapeSVG);

What gets removed:

  • sodipodi:* elements and attributes
  • inkscape:* elements and attributes
  • SVG 1.2 flowText elements
  • Namespace declarations

What gets preserved:

  • Mesh gradients and hatches (SVG 2)
  • All standard SVG elements

Run Without Installing

bunx @emasoft/svg-matrix svgm input.svg -o output.svg
bunx @emasoft/svg-matrix svg-matrix to-plain inkscape.svg -o plain.svg

Changes

  • feat: add convertToPlainSVG function
  • feat: add --to-plain-svg option to svgm CLI
  • feat: add to-plain command to svg-matrix CLI
  • docs: add Inkscape conversion and bunx usage to README

Full Changelog: v1.3.5...v1.3.6