← Back to Advent of Code

Day 11 - Extending day 8's work - Vectorizing segmented images into SVGs

12/11/25

Building on the segmentation and inpainting work from Day 8 , today I wanted to explore how to vectorize the segmented image so it can be imported into Figma and manipulated as an SVG. I deployed a simple vectorization endpoint using potrace on Modal.

The demo below lets you segment an image, optionally inpaint it, and then vectorize either result. Try changing the color and scale of the vector to see how it stays crisp at any size.

Try it yourself!

Drop image or click to select

Ctrl+V to paste an image