Trace To Svg

Trace bitmap images (PNG/JPG/WebP) into clean SVG paths using potrace/mkbitmap. Use to convert logos/silhouettes into vectors for downstream CAD workflows (e.g., create-dxf etch_svg_path) and for turning reference images into manufacturable outlines.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
1 · 1.8k · 2 current installs · 2 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill is a simple wrapper around mkbitmap + potrace. The declared required binaries (potrace, mkbitmap), apt/brew install entries (potrace), and the included script all match the stated purpose of converting bitmaps to SVG.
Instruction Scope
SKILL.md and the script only instruct running mkbitmap and potrace on a provided input file, producing an output SVG in a specified path. The script checks for required binaries, uses a temporary directory, and does not read other system files, environment variables, or transmit data externally.
Install Mechanism
Installers use standard package managers (apt and brew) to install potrace, which is expected and low risk. There are no downloads from arbitrary URLs or archive extraction steps.
Credentials
The skill declares no environment variables or credentials and the runtime script does not access secrets or unrelated env vars. Required permissions are only filesystem read/write for files you pass.
Persistence & Privilege
The skill is not set to always:true and does not modify system or agent-wide configuration. It has normal, non-persistent presence and requires explicit invocation to run.
Assessment
This skill appears coherent and low-risk: it runs local binaries (mkbitmap, potrace) on files you provide and writes an SVG output. Before installing, confirm you trust the source of the potrace package (apt/brew are standard), run the included script manually on a test image to verify behavior, and avoid passing sensitive files you don't want processed. If you deploy in a multi-user or cloud environment, ensure the agent has only the filesystem permissions it needs and that potrace/mkbitmap come from your trusted package repositories.

Like a lobster shell, security has layers — review code before you run it.

Current versionv0.1.0
Download zip
latestvk97ba2e6abqc13hvzp8bc0e6g180a51w

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

Binspotrace, mkbitmap

Install

Install potrace + mkbitmap (brew)
Bins: potrace, mkbitmap
brew install potrace

SKILL.md

trace-to-svg

Convert a bitmap into a vector SVG using mkbitmap + potrace.

Quick start

# 1) Produce a silhouette-friendly SVG
bash scripts/trace_to_svg.sh input.png --out out.svg

# 2) Higher contrast + less noise
bash scripts/trace_to_svg.sh input.png --out out.svg --threshold 0.6 --turdsize 20

# 3) Feed into create-dxf (example)
# - set create-dxf drawing.etch_svg_paths[].d to the SVG path `d` you want, or
# - store the traced SVG and reference it in your pipeline.

Notes

  • This is best for logos, silhouettes, high-contrast shapes.
  • For photos or complex shading, results depend heavily on thresholding.
  • Output is usually one or more <path> elements.

Files

3 total
Select a file
Select a file to preview.

Comments

Loading comments…