Save SVG - ComfyUI Built-in Node Documentation
A utility node for saving SVG vector graphics to files
The Save SVG node allows you to save SVG data from Recraft vector generation nodes as usable files in the filesystem. This is an essential component for handling and exporting vector graphics.
Node Function
This node receives SVG vector data and saves it as standard SVG files in the filesystem. It supports automatic file naming and save path specification, allowing vector graphics to be opened and edited in other software.
Parameters
Basic Parameters
Parameter | Type | Default | Description |
---|---|---|---|
svg | SVG | - | SVG vector data to save |
filename_prefix | string | ”recraft” | Prefix for the filename |
output_dir | string | - | Output directory, defaults to ComfyUI output folder at ComfyUI/output/svg/ |
index | integer | -1 | Save index, -1 means save all generated SVGs |
Output
Output | Type | Description |
---|---|---|
SVG | SVG | Passes through the input SVG data |
Usage Example
Recraft Text to Image Workflow Example
Recraft Text to Image Workflow Example
Source Code
[Node Source Code (Updated 2025-05-03)]