Tracing AI-generated art: how to turn Midjourney and DALL-E images into clean SVGs
AI image generators produce stunning raster files. Here's how to convert Midjourney, DALL-E, and Stable Diffusion outputs into clean, scalable vectors — and which settings actually work.
Tracing AI-Generated Art: How to Turn Midjourney and DALL-E Images Into Clean SVGs
AI image generators are extraordinary at producing visuals. What they can't do is produce a vector file. Midjourney, DALL-E, Stable Diffusion, and Firefly all output PNG or JPG — raster files that blur when you scale them, can't be edited as paths, and won't satisfy a print vendor or embroidery machine asking for vectors.
The good news: with the right settings, a raster-to-vector tracer can produce excellent SVG output from AI-generated images. The bad news: AI art has characteristics that make naive tracing produce garbage. Here's how to get it right.
Why AI art is harder to trace than a logo
A logo on a solid background is a tracer's ideal input — high contrast, clean edges, limited colors, flat regions.
AI-generated images are the opposite. Even a stylised, "flat" Midjourney image typically has:
- Soft gradients between color regions — no hard edge for the tracer to lock on to
- Film grain and noise — texture baked into every pixel, which gets traced as thousands of tiny speckle paths
- Anti-aliasing everywhere — smooth pixel transitions at every boundary that become jagged polygon artefacts
- High color complexity — even a cartoon-style image may contain hundreds of distinct color values
Step 1: Pre-process before you trace
The single most effective thing you can do before tracing is pre-process the image in a way that mimics what a human would draw.
Reduce colors first. Open the image in any editor (even Preview on Mac) and posterise or reduce the palette to 6–12 colors. This removes the gradient complexity before the tracer ever sees it.
Increase contrast. Bump contrast by 20–30%. This sharpens the soft edges between color regions so the tracer produces cleaner path boundaries.
Remove noise. Apply a mild blur (0.5–1px Gaussian) before tracing. Counter-intuitively, blurring before tracing produces sharper vector output because it eliminates the pixel-level noise the tracer would otherwise faithfully reproduce as micro-paths.
If you don't have an editor handy, Vectalyze's pre-processing pipeline applies sharpening and contrast normalisation automatically before the trace runs.
Step 2: Choose the right trace mode
For AI art, Color mode is almost always what you want. B&W throws away all the color information that makes AI art interesting. Grayscale works for monochrome concepts but misses the point for most outputs.
In Color mode, the key parameter is Color steps — the number of color layers the tracer quantises the image to before fitting paths.
| Color steps | What you get | |---|---| | 2–4 | Very bold, graphic, poster-like result — lots of detail lost | | 6–10 | Good balance — readable shapes, manageable path count | | 12–16 | More faithful to the source — but path count climbs fast | | 20+ | Usually too complex — minimal visual gain over 12–16 |
Start at 7 (the Vectalyze default) and work up or down from there. For flat, cartoon-style AI art, 6–8 is the sweet spot. For painterly or photographic AI images, 10–14 gets you closer to the source.
Step 3: Handle the path explosion
Even with careful settings, a complex AI image can produce thousands of paths. Before you declare the SVG done, open it in Illustrator or Inkscape and check the path count.
Delete micro-paths. Select all, then filter by size — delete any paths smaller than, say, 4×4px. These are noise artefacts the tracer picked up and they add file size without adding visible detail.
In Vectalyze, the Turd size parameter does this automatically during tracing. Set it to 10–20 for AI art (default is lower, tuned for clean logos). This tells the tracer to discard any region smaller than that many pixels, eliminating speckle before it ever reaches the output.
Simplify paths. Illustrator's Object → Path → Simplify (with a 1–2% tolerance) and Inkscape's Path → Simplify both reduce node count on complex paths without visible quality loss at most sizes.
Step 4: Know when to stop
Not every AI image makes a good vector. Images that trace well:
- Flat or limited-palette illustrations ("Midjourney --style flat", anime style, sticker art)
- Bold graphic concepts with clear color blocks
- Simple portraits with high contrast and limited backgrounds
- Icon-style generations with clean silhouettes
- Photorealistic scenes — too much color complexity, too many gradients
- Images with heavy texture, bokeh, or depth-of-field effects
- Anything with text — AI-generated text is usually illegible and traces even worse
Quick reference: settings for AI art in Vectalyze
| Setting | Recommended for AI art | |---|---| | Mode | Color | | Color steps | 7–10 (start here) | | Turd size | 15–25 | | Threshold | n/a (Color mode) | | Smoothing | 0.6–1.0 |
Run the conversion, check the compare slider, then adjust one setting at a time. Color steps has the most impact on output quality; turd size has the most impact on file size.