Nodes/ComfyUI/Recraft Vectorize Image
ComfyUI Node Runs on cloud

Recraft Vectorize Image

Raster in, editable SVG out, zero tracing pain

By Comfy-Org·Created 4 years ago·Updated about 2 hours ago· 129,809
Recraft Vectorize Image
  • image
  • SVG

You've got a PNG - a logo, an icon, a hand-drawn sketch - and you need it as a vector. Locally, that means firing up an auto-tracer and fighting with path noise. This node skips all of it: send the image up to Recraft, get back an editable SVG. One input, one output, no settings at all.

It's the image-input twin of RecraftTextToVectorNode. That node generates a vector from a prompt; this one converts an existing raster into a vector. Together they're Recraft's design-focused superpower made available inside the node graph, and there's still no real free local equivalent that produces clean, editable SVG paths from arbitrary raster art.

How it works

Your image goes to /proxy/recraft/images/vectorize, Recraft's model rebuilds it as vector geometry on their side, and the result comes back as the core SVG type. If you feed it a batch of images, each one is vectorized and the results are combined into a single SVG output. It's billed per image from your Comfy account credits - hosted, not local, so no VRAM and no model files.

Inputs and outputs

  • image - the raster you want converted
  • SVG out - the vector result

That's the entire schema. The interesting part is what you do with the SVG output, because it's not an IMAGE tensor and the rest of your graph will refuse to mix the two.

Wiring the SVG output

Use SaveSVGNode (Save SVG, in core) to write the vector to disk under output/svg/, then open it in Illustrator, Inkscape, or Figma. For anything else, there are core nodes that convert SVG to a raster preview. Trying to feed the SVG wire into an IMAGE input just produces a type error.

Common issues

  • Clean sources vectorize cleanly. Flat-color logos, icons, and simple illustrations give beautiful path output. Photographs and heavy gradients come back as a stylized approximation, because that's what vectorizing a photo means. Match the input to the expectation.
  • Auto-tracing is still auto-tracing. Recraft's model is much smarter than a dumb Image Trace pass, but complex sources can still produce more anchor points than a designer wants. Budget a little cleanup time for production work.
  • Batch = combined output. A multi-image batch produces one combined SVG rather than separate files. If you need individual vectors, run them one at a time or split the outputs downstream.

This is the node to reach for when a client hands you a 200px raster logo and the deliverables list says "vector." It's not free - nothing in the hosted family is - but for the "I need an editable SVG and I need it now" case, it's hard to beat for convenience.

Categorypartner/image/Recraft

Inputs (1)

NameTypeDefaultDescription
imageIMAGE

Outputs (1)

NameTypeDescription
SVGSVG