enjeck / jpg2svg

Convert JPG images to SVG
11 stars 3 forks source link
converter image-converter image-manipulation image-to-image image-to-image-translation jpeg jpg svg

jpg2svg

An attempt at converting colored JPG images to colored SVG. It automatically traces the image in layers and applies dominant colors selected from the image to each layer.

Some results (JPG and converted SVG side by side)

Images with higher contrast, and with white backgrounds produce better results:

Technical details

The actual image conversion code is held at svg.py. Below is a summary of the steps it follows: