Spark
Generation and creative work

Vector, icons and illustrations: from raster to curves

Topic 1110 min read + 1 hour for the taskRevised October 10, 2026

Everything Midjourney, GPT Image and Nano Banana produce is raster, a grid of pixels. For a cover or a moodboard that’s enough. But a logo, an icon, an interface illustration and anything that goes to print or gets scaled must be vector. That means curves you can enlarge to the size of a storefront sign, recolor in one click and adjust point by point. Between “the model drew something nice” and “this can go to production” lies a separate chunk of work. The path you choose decides whether it takes five minutes or two hours.

Three paths to vector

Path How it works Strength Weakness
Native vector generation The tool outputs SVG with editable curves right away: Recraft, vector generation in Adobe Illustrator Real shapes and groups, not traced blobs. Adobe trains on licensed content Less artistic freedom than raster models. The style looks recognizably “stock”
Raster → tracing The image is generated in any model, then traced: Image Trace in Illustrator, Vectorize in Figma (on paid plans; on the free plan, plugins like Image Tracer), separate services like Vectorizer.AI Any style and any model. The best path for complex illustrations Lots of extra nodes, ragged joins, “dirty” colors. Almost always needs cleanup
SVG as code A chat model writes SVG as text, the way it would write HTML A perfectly clean, light file. Edited with words, easy to animate Works only for simple, geometric things: icons, patterns, diagrams. The model won’t draw characters or organic shapes in code

Choose the path by the result. A simple icon or pattern: code. A flat illustration in a typical style: native generation. Something with character and a style of its own: raster plus tracing.

How to write a prompt “for tracing”

Tracing turns areas of one color into shapes. The fewer smooth transitions, textures and shadows in the image, the cleaner the vector. So generate an image that will be traced as traceable from the start: flat fills, a limited palette, crisp edges, a uniform background. The example below is for Midjourney. In Recraft and GPT Image the --raw and --ar flags don’t work and will end up as text in the image, so leave them out there.

potted monstera plant as a mid-century screen print, bold cut-paper leaf shapes with expressive splits, asymmetric composition, leaves spilling out of frame, limited palette of 4 flat colors: deep bottle green, mustard, terracotta, warm off-white, crisp edges, no gradients, no texture, no shadows --raw --ar 1:1 --stylize 250

For GPT Image and Nano Banana you write the same thing as a plain sentence. It helps to add: “as if it were an export from a vector editor, not a drawing.” After generating, upscale the image (the “Image generation” topic, section “Core techniques”). Tracing a large image gives noticeably smoother curves.

BeforeA monstera in a terracotta pot, drawn with veins, hatching and soft shadows on a cream background

“illustration of a potted monstera plant”: hatching, halftones and a shadow on the floor.

AfterA monstera in a screen-print style: large leaves in dark green, mustard and terracotta, crisp edges, flat fills

The prompt above: four flat colors, crisp edges, no shadows.

Both images are raster, but tracing will turn the right one into a few clean shapes and the left one into hundreds of blobs. Flat doesn’t mean faceless: style and character come from the leaf shapes and the palette, not from gradients. · Midjourney V8.2
Before — a regular prompt
illustration of a potted monstera plant --ar 1:1
After — a prompt for tracing

Flat colors, crisp edges, no shadows

potted monstera plant as a mid-century screen print, bold cut-paper leaf shapes with expressive splits, asymmetric composition, leaves spilling out of frame, limited palette of 4 flat colors: deep bottle green, mustard, terracotta, warm off-white, crisp edges, no gradients, no texture, no shadows --raw --ar 1:1 --stylize 250

Cleanup after tracing

Automatic tracing is almost never the final step. What to check before you call the file done:

  • Node count. A circle made of forty points is a sign of raw tracing. Simplify the paths and see whether the shape has drifted.
  • Background and debris. Tracing often leaves a white rectangle under the image and dozens of tiny artifact shapes. Delete them.
  • Colors. Instead of four colors, the file will have twelve nearly identical shades. Reduce them to the brand palette.
  • Joins. Thin gaps or overlaps remain between neighboring shapes. They’ll show up in print and on a dark background.
  • Symmetry and geometry. Anything that should be a perfect circle or a symmetrical shape is easier to rebuild with a primitive than to fix point by point.
  • Structure. Group and name the layers. Otherwise the file can’t be handed off (the “AI inside Figma” topic, automatic layer names).

An honest rule: if cleanup takes longer than redrawing on top, put the generation on the bottom layer as tracing paper and trace it by hand. For logos and key icons this is almost always the case.

Edge tracing

A rocket after edge-detection tracing: every line outlined with a double path with dozens of nodes

Brightness cutoff

The same rocket after brightness tracing: solid black shapes, noticeably fewer nodes
One image, two Trace Bitmap modes in Inkscape. The little squares are nodes: on the left there are hundreds, and this is still a simple silhouette. The fewer nodes, the less cleanup afterwards. · Inkscape · illustrations: Inkscape Beginners' Guide, CC BY-SA 4.0

Icons: library first, then generation

For an interface, a ready-made library is still the first choice: Phosphor, Lucide, Material Symbols (the “Libraries and resources for vibe coding” topic). A consistent grid, stroke weight and a clear license matter more than originality. Generation makes sense in three cases. The library doesn’t have the metaphor you need. The brand needs its own set. Or an existing set is missing a few icons.

The last case is the best use of the “SVG as code” path. Show the model the code of three or four icons from the set as a sample (the same few-shot approach from the “Foundations” topic) and ask for a new one in the same system:

Here is the SVG code of four icons from our set (paste it). Shared rules: 24×24 canvas, 1.5 stroke, round caps and joins, no fills, 2 px padding from the edge.
Draw a ‘product return’ icon in the same system. Return only the SVG code. If the metaphor isn’t obvious, suggest two options and explain the difference.

The result goes into Figma as is: copied SVG code turns into a vector layer. If you need a whole set in a signature style from a raster model, the main problem is consistency. Nine icons generated separately will look like nine different sets. It’s more reliable to generate them as one sheet image (“a 3×3 grid of icons in one style”), lock the style with a reference (the “Characters and style” topic), then cut them apart and trace.

BeforeNine 3D icons generated separately: a little house with an orange roof, a magnifying glass, a blue bell, a profile, a cart, a red heart, a white gear, a calendar, a chat bubble. Colors, materials and angles all differ.

Nine separate generations: nine different sets.

AfterA three-by-three sheet of nine icons in one style: matte clay, light blue and cream, the same light and angle

One generation as a 3 × 3 sheet: one system.

One generation as a 3 × 3 sheet holds the light, material, palette and angle for all nine icons at once. · Midjourney V8.2
Prompts

Before — each icon with its own prompt, only the object changes

3D app icon of a [house / magnifying glass / notification bell / …], white background --ar 1:1

After — all nine in one prompt, the style set once

a 3x3 grid of nine 3D app icons in one consistent style: house, magnifying glass, notification bell, user profile, shopping cart, heart, settings gear, calendar, chat bubble; soft matte clay material, the same pastel blue and cream palette, the same soft light from the top left and the same three-quarter camera angle, equal padding, white background --ar 1:1

Whatever an icon’s origin, check it at its real size: 16, 20, 24 pixels. Something that looks great on a 512-pixel canvas turns into a blot in an interface.

512 px

A 3D house with an orange roof, white walls, a window and an orange door

24 px

The same house shrunk to 24 pixels and enlarged: the window and door are blobs

20 px

The same house at 20 pixels: the roof still reads, the details have merged

16 px

The same house at 16 pixels: an orange blob on top and a grey one below
The real sizes are enlarged without smoothing so you can see the pixels. The chimney, window and door disappear already at 24 px, and by 16 px only a silhouette remains. An interface needs its own simplified version, not a scaled-down one. · Midjourney V8.2

Illustrations for interfaces and brands

Empty states, onboarding, article covers, landing page illustrations. This is where AI saves the most time, and the main job is a series that looks like one system. The techniques are the same as in the “Characters and style” topic: a style guide as the fixed part of the prompt, a style reference, and in Recraft a saved style that applies to all new generations. On format: take simple flat illustrations to SVG, since they’re lighter and can be recolored for a dark theme. Complex and textured ones are more honestly left as PNG or WebP than tortured through tracing. A vector illustration is easy to bring to life: you can ask an agent to animate the SVG with CSS or export it to Lottie (the “Vibe coding: art and tools” topic).

Logos: where the line is

Generation is good while you search for directions: twenty concepts in an evening instead of three. The final mark is still built by hand, and there are concrete reasons for that. Geometry and optical compensation. Working at 16 pixels and in one color. Variants of the mark that must be one sign, not four similar ones.

Twelve mark options for a meditation app from three runs: a lotus, sheets with small symbols, meditating figures, an infinity sign, moons, X letters, a stack of stones, interlocking rings, a polyhedron
Three runs of one prompt: twelve directions in a couple of minutes. Almost half are clichés (a lotus, a figure in the lotus position), and some miss the brief (sheets with lots of little symbols). For exploration that’s fine: pick two or three directions and build the mark by hand. · Midjourney V8.2
Prompt
abstract logo mark concepts for a calm meditation app, simple geometric symbol, flat, single color, no letters, no text, white background --chaos 40

There’s also a legal side. A generated mark can turn out similar to an already registered one, and models don’t check that (the “Image generation” topic, section “Logos, backgrounds and branding”). On top of that, in several jurisdictions, including the US, an image created by a model without substantial human creative contribution isn’t protected by copyright. For a moodboard that doesn’t matter. For a logo it’s a business risk for the client: a mark that can’t be protected can be used by anyone. One more argument for having a human build the final form (the “Ethics, privacy and limits” topic).

Command examples for practice

Where to pasteAny chat assistant: ChatGPT, Claude, Gemini
Draw an SVG ‘filter’ icon for an interface: 24×24 canvas, 1.5 stroke, round caps, no fills. Return the code, and after it, in one paragraph, suggest how the same icon should look in its active state
Here is an SVG after automatic tracing (paste the code). Simplify it: remove the background rectangle and duplicate shapes, reduce the colors to four, list what you changed
Generate a seamless SVG pattern of simple geometric shapes in the palette #2D3047, #93B7BE, #FFCF56. Build it with <pattern patternUnits="userSpaceOnUse" width="200" height="200">. Join rule: every shape that crosses the edge of the tile is duplicated with a ±200 offset along that axis so it continues on the neighboring tile. Return the full code

The model doesn’t guarantee seamlessness on its own: without the join rule, shapes at the edge get cut off.

Write Midjourney prompts for a series of six flat illustrations for the empty states of a habit tracker app: a style that traces well into vector, a shared palette of five colors, a common character. Make one fixed part with the style and character and six variable parts, one per scene. Advise how to keep the character the same: --sref for the style and Edit Model with a character reference

One prompt won’t hold a character across six scenes, so the series is built from a shared part and variable parts.

First visit: no habits yet

An ink drawing: a person sits on the floor tying the laces of green sneakers, an open empty notebook beside them

Nothing planned for today

An ink drawing: a person with a mug of tea by a window, a small green sprout in a pot on the sill

All done

An ink drawing: a little figure happily raising both arms, a green paper airplane flying away above
Three empty states in one system: a hand-drawn black line, lots of white space, one green accent. The style holds thanks to the shared fixed part of the prompt and --sref. The character, though, changes from frame to frame; a recurring hero also needs a character reference (the “Characters and style” topic). · Midjourney V8.2
Prompts

Each prompt = scene + shared style part. The scenes differ, the style is the same.

Scene 1, first visit

hand-drawn black ink line illustration for an empty state of a habit tracker app, a person sitting on the floor tying sneaker laces, ready to start, a small open blank notebook lying flat beside them, playful minimal doodle style, lots of white space, single soft green accent, no text --ar 4:3 --sref [link to the first good frame]

Scene 2, nothing today

hand-drawn black ink line illustration for an empty state of a habit tracker app, a person holding a mug of tea by a window, a tiny sprout in a pot on the sill, calm quiet day, playful minimal doodle style, lots of white space, single soft green accent, no text --ar 4:3 --sref [link to the first good frame]

Scene 3, all done

hand-drawn black ink line illustration for an empty state of a habit tracker app, a happy person stretching both arms up, a paper airplane flying away above them, all done for today, playful minimal doodle style, lots of white space, single soft green accent, no text --ar 4:3 --sref [link to the first good frame]
Where to pasteRecraft or vector generation in Illustrator
A flat vector illustration: a person watering a potted plant, a friendly minimalist style, 5 colors, no gradients or outlines, lots of white space around it
Mini-task

Make the same simple icon three ways. Ask a chat model to write it as SVG code. Generate it in a raster model and trace it. Generate it in a tool with native vector output. Open all three files in Figma or Illustrator in outline mode and compare: how many nodes, how clean the geometry is, how long cleanup took. Shrink each one to 24 pixels and see which stays readable.

Time: about an hour
Done when: you have three SVG files of the same icon made three different ways, and you can say which one you would use at work and how long each took to clean up

Sources

  1. AI Vector Generator: Text to SVGrecraft.ai

    Recraft outputs an editable SVG right away

  2. Text to Vector Graphic - Adobe Illustratoradobe.com

    Generating editable vector graphics in Illustrator

  3. Use AI tools in Figma Designhelp.figma.com

    Vectorize in Figma is available only on paid plans

  4. Copyright and Artificial Intelligence, Part 2: Copyrightabilitycopyright.gov

    The US Copyright Office’s position: purely generated material isn’t protected

Found a mistake or an outdated fact? Write to hey@iskra.guide