Run this workflow on InstaSD
Get started in minutes! Run this ComfyUI workflow online - no setup required.
Description
Create vector-based SVG illustrations from AI-generated or user-provided images using this versatile SDXL Vector SVG Workflow in ComfyUI. Whether you're starting with a prompt or importing an existing image, this workflow supports black & white or color vectorization, ideal for clean, scalable graphics ready for print, laser cutting, or web design.
🎯 Features
- Prompt-to-Image Generation – Use SDXL to generate base imagery for vectorization.
- Black & White SVG – Simplified silhouettes using
ConvertRasterToVectorBWfor sharp contrast vectors. - Color SVG Support – Use
ConvertRasterToVectorColorto retain color layers and gradients in vector format. - SVG Export – Save results as
.svgfiles directly usingSaveSVG. - PNG Previews – Also exports PNG versions of vector results for easy previews.
- Flexible Input – Accepts both generated images and user-loaded images.
💡 Use Cases
- Icon & Logo Design – Generate crisp, scalable assets for digital branding.
- Stickers & Laser Cuts – Create SVGs ready for Cricut, Glowforge, or vinyl cutting machines.
- Web & UI Art – Design vector graphics for responsive interfaces.
- Print Media – Convert art into scalable format suitable for t-shirts, mugs, or posters.
- Digital Illustration – Produce artistic, line-based or layered color renderings for comic or graphic novel work.
⚙️ How It Works
- (Optional) Generate Image – Use
EmptyLatentImage,CLIPTextEncode, andKSamplerto create an initial image using SDXL. - Decode the Image – Pass the latent output to
VAEDecodefor visual preview and further processing. - Choose Vectorization Mode:
- For Black & White:
- Use
ConvertRasterToVectorBWand connect toSaveSVGandConvertVectorToRasterfor PNG export.
- Use
- For Color SVG:
- Use
ConvertRasterToVectorColor, then export usingSaveSVGand preview viaConvertVectorToRaster.
- Use
- For Black & White:
- Image-Only Option – Skip generation and load your own image directly into the vectorization nodes.
- Export Results – Save final outputs in SVG and PNG formats (e.g.,
svgbw.svg,svgc.svg,pngbw.png,pngc.png).
Credits: pixaroma
Models
| File | Destination | Source |
|---|---|---|
| Juggernaut_X_RunDiffusion.safetensors | /ComfyUI/models/checkpoints | Download |
Nodes
ConvertVectorToRasterSaveImageConvertRasterToVectorBWSaveSVGConvertRasterToVectorColorKSamplerVAEDecodeCLIPTextEncodeEmptyLatentImageCheckpointLoaderSimpleFast Groups Muter (rgthree)Note