Gemini Save SVG
Write the traced vectors to disk and preview them
- svg_strings
- preview_image
- file_path
This is the node that actually gets your vectors out of ComfyUI. The pack's raster-to-vector nodes produce SVG strings - text floating in the graph that you can't see or use. Gemini Save SVG takes those strings, writes them to a real .svg file on disk, and renders a raster preview so you can finally look at what you traced. Without it, the SVG pipeline has no exit.
Despite the "Gemini" name it calls no AI and needs no key. It's a file writer with a preview attached.
How it works
You feed it the svg_strings list from Raster to Vector (SVG) or Gemini Convert Raster to Vector. It saves each SVG to a file and, if you ask, rasterizes it to a PNG at a size you choose so ComfyUI can display it. Two useful outputs come back: the preview image (so it shows up in the UI and can feed downstream nodes) and the file path of the saved SVG (handy if you want to log or pass it along).
The inputs and outputs that matter
svg_strings- the vector data from a convert node. This is the one required data connection.filename_prefix(defaultComfyUI_SVG) - the base name for saved files.create_preview(default on) - render a raster preview. Turn it off if you only care about the file and want to skip the render step.preview_width/preview_height(default 512) - the size of that raster preview.append_timestamp(optional, default on) - tacks a timestamp onto the filename so successive runs don't overwrite each other.custom_output_path(optional) - write somewhere other than the default ComfyUI output folder.
Outputs are preview_image (an IMAGE, wire to a Preview or Save Image node) and file_path (a STRING). It's an output node, so it terminates the SVG branch of your graph.
Installing it
It ships in the ComfyUI-OllamaGemini pack. Install via ComfyUI Manager (search ComfyUI-OllamaGemini, install, restart) or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/al-swaiti/ComfyUI-OllamaGemini
pip install -r requirements.txt
then restart.
Where people get burned
The most common failure is the preview. Rendering an SVG to a raster needs an SVG rasterizer (something like cairosvg on the backend), and that dependency is exactly the kind of thing that quietly fails to install on Windows. When it's missing, the file still saves fine but the preview comes back blank or the node errors on the render step. If that happens, either flip create_preview off and open the saved .svg in a browser to check it, or sort out the rasterizer dependency.
Otherwise it's low-drama. Keep append_timestamp on if you're iterating so you don't clobber earlier exports, use custom_output_path if you want the files somewhere specific, and remember this node is the end of the vector chain - it expects svg_strings from a convert node, not an image. Feed it an IMAGE by mistake and it has nothing to save.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| svg_strings | LIST | — | |
| filename_prefix | STRING | ComfyUI_SVG | — |
| create_preview | BOOLEAN | true | — |
| preview_width | INT | 51264–2048 | — |
| preview_height | INT | 51264–2048 | — |
| append_timestampopt | BOOLEAN | true | — |
| custom_output_pathopt | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| preview_image | IMAGE | — |
| file_path | STRING | — |