Save SVG String (Potracer Temp Fix)
Save SVG String (Potracer Temp Fix) — the tiny node that kept old workflows alive
The display name is doing heavy lifting: "Save SVG String (Potracer Temp Fix)". This is a renamed duplicate of the SaveSVG node from Yanick112's ComfyUI-ToSVG pack, and it exists because of a naming collision. When ComfyUI 0.3.32 shipped its own built-in SaveSVG API node, the two nodes had the same internal name - breakage followed. So the author of ComfyUI-ToSVG-Potracer copied SaveSVG, renamed it to SaveAsSVG Potracer (Temporary Fix), and bundled it in. If your workflow predates that update, this is the node that keeps your SVG files landing on disk.
What it actually does
It's a plain output node: it takes SVG markup as a string and writes it to your ComfyUI output folder as a .svg file. That's the whole job - no vectorization, no preview, no rasterization. Its one real purpose is being the landing pad for PotracerVectorize's svg_string_deprecated output (or any other node that hands you raw SVG text).
Inputs
svg_string_data(STRING, multiline) - the SVG source. It's markedforceInput, so you don't type it; you wire the string output of another node into it.filename_prefix(defaultSVG/ComfyUI_SVG) - the save name, and the leadingSVG/acts as a subfolder, so files land inComfyUI/output/SVG/ComfyUI_SVG_*.svg. Change the prefix to organize your exports.append_timestamp(default true) - appendsYYYYMMDD-HHMMSSto the filename so you never overwrite the previous export. The code even adds a counter if you somehow save twice in the same second.
No outputs - it's an output node; the "return value" is the file on disk and a message in your console.
When you need it (and when you don't)
Here's the honest version: if you're on ComfyUI 0.3.32 or newer, you don't strictly need this node at all. The pack's main node, PotracerVectorize, outputs a typed SVG object (svg_ComfyUI_v0.3.32+) that plugs straight into ComfyUI's own SaveSVG. That's the clean modern path.
You want this temp-fix node when:
- Your workflow still uses the old string route (
svg_string_deprecated→ string input), and - the built-in node's name conflict broke your old save.
Trying to feed the new SVG-typed output into this node won't work - it expects a plain STRING. Use svg_string_deprecated instead. And since the whole pack depends on Yanick112's ComfyUI-ToSVG for things like VectorToRaster anyway, having both installed is the norm, not the exception.
Install
It ships inside the pack, so it's the same install as PotracerVectorize - no separate clone, no extra dependency beyond the pack's potracer requirement.
cd ComfyUI/custom_nodes
git clone https://github.com/ImagineerNL/ComfyUI-ToSVG-Potracer
cd ComfyUI-ToSVG-Potracer
pip install -r requirements.txt
Or via ComfyUI Manager, searching ComfyUI-ToSVG-Potracer. Restart ComfyUI and it shows up under the IMGNR category.
One honest caveat: the author calls it a "temporary fix," which is your signal that it exists to paper over an ecosystem transition, not to be the permanent answer. If you're starting fresh, build on the new SaveSVG node. If you've got a working legacy workflow, this is the unglamorous little node that keeps it running - and for a two-line fix, it does its job quietly and well.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| svg_string_data | STRING | — | |
| filename_prefix | STRING | SVG/ComfyUI_SVG | — |
| append_timestampopt | BOOLEAN | true | — |
Outputs (0)
No outputs