Agent skill

Image to SVG Skill for AI Coding Agents

The image-to-svg skill converts a raster image into an SVG vector reproduction using k-means color quantization and contour extraction instead of hand-drawn shapes.

Install
/plugin marketplace add oaustegard/claude-skills
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the image-to-svg skill?

image-to-svg is a skill that turns a raster image into an SVG through computational analysis: a processing mode chosen by image type, k-means color quantization, contour extraction, and an optional two-pass pipeline for line art. It verifies output with a side-by-side render comparison and supports palette remapping for pop-art style variants.

image-to-svg is one skill in oaustegard/claude-skills. It converts a raster image into an SVG vector reproduction using pixel-level data extraction rather than an agent redrawing shapes from a visual impression of the picture.

The skill picks one of four processing modes, tuned for logos, comics, paintings or photos, each with its own k-means cluster count, before running color quantization and contour extraction on the source image.

What changes in the agent's output

  • Shapes come from k-means color clustering and contour extraction on actual pixel data, not hand-drawn paths approximating what the image looks like.
  • Line art and technical drawings go through a two-pass pipeline that extracts thin strokes first, then fills the remaining regions separately.
  • A palette can be remapped to a built-in preset such as black and white, pop or neon, decoupling the output's color from its underlying structure.
  • Every result gets checked with a side-by-side render comparison before delivery, rather than handed over unexamined.

Preprocessing and batch output

Optional ImageMagick filters smooth the source image before quantization, cutting shape count and output size by a meaningful margin. A batch mode generates several palette variants that share the same underlying structure from one quantization pass.

Who the image-to-svg skill is for

Best for

  • Turning a logo, icon or flat illustration into a clean, scalable SVG.
  • Pop-art or palette-remap style variants that keep one shape structure across several color schemes.
  • Line art and technical drawings that need strokes preserved separately from fills.

Not for

  • If your job is mostly writing a design philosophy for an original visual art piece, the canvas-design skill is the better fit for that.
  • When the task is building OKLCH palettes and measuring contrast pairs, the better-colors skill is the better fit for that.
  • If your job is mostly converting an existing SVG into Android Vector Drawable XML, the svg2vector MCP is the better fit for that.

Use it with UiChemy

A converted SVG is an asset ready to drop into a page, not a page builder. Once the vector is produced, UiChemy AI to WordPress carries the surrounding front-end build into an editable WordPress page.