ComfyUI Node

Save SVG

Still the way to get SVG onto disk

By Yanick112·Created 2 years ago·Updated about a year ago· 314
Save SVG
      svg_strings
      filename_prefixComfyUI_SVG
      append_timestamptrue
      custom_output_path

      Straight to it: SaveSVG is the old name. The ComfyUI-ToSVG pack's June 17 update renamed its nodes to TS_* prefixes, and the current version of this node is TS_SaveSVGString - same inputs, same job. Old workflows referencing SaveSVG won't resolve to a node class anymore, so if ComfyUI reports it missing, that's the rename talking, not a broken install. Swap in TS_SaveSVGString and keep moving.

      What the node itself does is exactly what its one-line description says: save SVG data to a file. It's the terminal step of the whole pipeline - the thing that turns a vectorizer's string output into an actual .svg file on disk instead of just text in a node.

      Inputs

      • svg_strings - the SVG markup, straight from a converter node like TS_ImageToSVGStringBW_Vtracer or the color one.
      • filename_prefix - default ComfyUI_SVG. The base name of the file.
      • append_timestamp - default on. Adds a YYYYMMDDHHMMSS timestamp so you never overwrite an earlier run. Turn it off if you want a stable filename that overwrites each time.
      • custom_output_path - leave blank to write to ComfyUI's standard output directory; fill it in to write somewhere specific. The node creates the directory if it doesn't exist.

      It's an output node - no outputs, just the save side effect. You'll see the saved filename and full path reported in the UI after it runs.

      Wiring it in

      The natural graph is: image → TS_ImageToSVGStringBW_Vtracer (or color) → this node. You can also chain it after TS_SVGPathSimplify to save the slimmed version instead of the raw trace. Because the converters batch, a batch of images writes a batch of SVG files with your prefix.

      Install

      Same as the rest of the pack. ComfyUI Manager → search ComfyUI-ToSVG → Install → restart, or:

      cd ComfyUI/custom_nodes
      git clone https://github.com/Yanick112/ComfyUI-ToSVG/
      cd ComfyUI-ToSVG
      pip install -r requirements.txt
      

      Dependencies: vtracer, numpy, Pillow, torch, PyMuPDF, potracer. No models, no API keys. One thing worth knowing: ComfyUI core now has its own Save SVG node that writes SVG from the core SVG object type - this pack's save node works on plain SVG strings, which is what its own converters produce. Two different flavors of the same idea; use whichever matches the data you're holding.

      Category💎TOSVG

      Inputs (4)

      NameTypeDefaultDescription
      svg_stringsSTRING
      filename_prefixSTRINGComfyUI_SVG
      append_timestampoptBOOLEANtrue
      custom_output_pathoptSTRING

      Outputs (0)

      No outputs