Skip to content

Releases: realproject7/svgsmith

svgsmith 0.1.0

19 Jun 12:14
caa0e6f

Choose a tag to compare

svgsmith is an agent-native, self-verifying raster→SVG vectorizer. It turns PNG/JPG into clean, editable SVG and is built to be driven by an AI agent — it routes the engine by image type, post-processes into editable layers, verifies its own output (re-rasterize → SSIM → re-tune), and returns a structured JSON report.

pip install svgsmith

(Line-art/--mode binary also needs the potrace system binary — see the README.)

Highlights

  • Auto-routing — classifies the input and picks VTracer (color) or Potrace (line art) + preset.
  • Smooth, compact curves — Schneider least-squares Bézier fitting (no pixel-staircase wobble).
  • Small, clean palette — perceptual LAB color merging; adaptive (keeps rich art rich).
  • Self-verifying — re-rasterizes and scores vs the original, re-tuning to a quality target; emits a JSON report.
  • Agent-customizable flags--detail {high,normal,clean,poster}, --solid-background (isolate subject + clean flat background), --uniform-outline, --smooth/--no-smooth, --mode, --quality.
  • rasterize — SVG → PNG inverse command.
  • vectorize skill — maps natural-language intent to the flags.
  • Responsive, scalable SVG output (viewBox, fits any container).

MIT licensed. https://pypi.org/project/svgsmith/0.1.0/