From svg-converter
This skill should be used when the user asks to "convert to SVG", "vectorise image", "PNG to SVG", "trace image", "raster to vector", "convert PNG to vector", "make an SVG from image", "batch convert images to SVG", or needs to convert raster images (PNG, JPG, WebP) into scalable vector graphics using vtracer.
How this skill is triggered — by the user, by Claude, or both
Slash command
/svg-converter:svg-converterThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Convert raster images to clean, scalable SVGs using [vtracer](https://github.com/nickmqb/vtracer) vectorisation. Ideal for converting AI-generated artwork, logos, illustrations, and icons into resolution-independent vector format.
Convert raster images to clean, scalable SVGs using vtracer vectorisation. Ideal for converting AI-generated artwork, logos, illustrations, and icons into resolution-independent vector format.
Install vtracer via pip:
pip install vtracer
Requires Python 3.7+. The vtracer package (currently v0.6.12+) provides both a Python API and the underlying Rust vectorisation engine.
The conversion script is located at:
${PLUGIN_ROOT}/skills/svg-converter/scripts/convert_to_svg.py
python3 convert_to_svg.py input.png -o output.svg
Convert multiple files to an output directory:
python3 convert_to_svg.py *.png -o ./svgs/
| Flag | Default | Description |
|---|---|---|
--colormode | color | Colour mode: color or binary |
--hierarchical | stacked | Layer mode: stacked or cutout |
--mode | spline | Path mode: spline, polygon, or none |
--filter-speckle | 4 | Remove speckles smaller than N pixels |
--color-precision | 6 | Colour quantisation precision (1–8) |
--layer-difference | 16 | Layer differentiation threshold |
--corner-threshold | 60 | Corner detection threshold (degrees) |
--length-threshold | 4.0 | Minimum path segment length |
--max-iterations | 10 | Maximum fitting iterations |
--splice-threshold | 45 | Path splicing threshold (degrees) |
--path-precision | 3 | Decimal precision for path coordinates |
Best for AI-generated illustrations, character art, and detailed images. These are the tested defaults built into the script:
python3 convert_to_svg.py input.png -o output.svg
For photographs or images requiring maximum colour fidelity:
python3 convert_to_svg.py input.png -o output.svg \
--color-precision 8 \
--filter-speckle 2 \
--path-precision 5
For simple logos and icons with fewer colours and cleaner paths:
python3 convert_to_svg.py input.png -o output.svg \
--filter-speckle 8 \
--color-precision 4 \
--corner-threshold 90
For silhouettes, stamps, or black-and-white artwork:
python3 convert_to_svg.py input.png -o output.svg --colormode binary
--filter-speckle to reduce noise and file size at the cost of fine detail.npx claudepluginhub copiadigital/claude-plugins --plugin svg-converterConverts PNG images to high-quality SVG using ImageMagick, vtracer spline vectorization, and svgo compression. Supports optional white-background removal and parameter tuning for cleaner vectors.
CLI image manipulation using ImageMagick and vtracer — convert PNG/JPG to SVG, remove watermarks, resize, crop, and edit raster images.
Wraps raster logo files (webp, png, jpg) as base64-embedded SVG for pixel-identical output. Use when converting logos to SVG format without a vector source.