vectorize
Installation
SKILL.md
Vectorize
Convert raster images to SVG via vtracer. vtracer is a colour-clustering tracer — much better than potrace for full-colour images, comparable for B/W line art. Installed as a Python wheel in the plugin venv (bundled Rust binary, no cargo needed at install time).
When to use
- Recover an editable vector logo from a raster (PNG/JPEG).
- Convert a flat illustration / icon / diagram into SVG for crisp scaling.
- Stylize a photo into a flat-colour vector (large
--filter-speckle+ low--color-precision). - Pre-step before
svg-to-rasterif you want to upscale a small raster losslessly.
Do not use this skill when:
- Source is a complex photograph and you want photo-realism — vector tracing always loses gradients/texture; use
upscale-imagefor raster upscaling instead. - You need OCR'd text inside the SVG — vtracer traces strokes, not text. Use a separate OCR step.
- Input is already SVG — no-op.