ComfyUI > Nodes > ComfyUI > SaveSVGNode

ComfyUI Node: SaveSVGNode

Class Name

SaveSVGNode

Category
image/save
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

SaveSVGNode Description

Facilitates saving SVG files with consistent naming and metadata for AI artists.

SaveSVGNode:

The SaveSVGNode is designed to facilitate the saving of SVG (Scalable Vector Graphics) files to your disk. This node is particularly useful for AI artists who work with vector graphics and need a reliable method to store their creations. By leveraging this node, you can ensure that your SVG files are saved with a consistent naming convention and stored in a designated output directory. The node's primary function is to take SVG data and save it as a file, allowing for the inclusion of metadata if available. This capability is essential for maintaining organized and accessible archives of your digital artwork, making it easier to manage and retrieve files as needed.

SaveSVGNode Input Parameters:

svg

The svg parameter is the core input for the SaveSVGNode, representing the SVG data that you wish to save. This data is typically provided as a list of BytesIO objects, which contain the SVG content. The node processes each SVG in the list, ensuring that all your vector graphics are saved efficiently. There are no specific minimum or maximum values for this parameter, as it is dependent on the SVG data you provide.

filename_prefix

The filename_prefix parameter allows you to specify a prefix for the filenames of the saved SVG files. This prefix can include formatting information, such as date or image dimensions, which can be dynamically inserted into the filename. The default value for this parameter is "svg/ComfyUI", but you can customize it to suit your organizational needs. This feature is particularly useful for categorizing and sorting your files based on specific criteria, enhancing the manageability of your SVG collection.

SaveSVGNode Output Parameters:

The SaveSVGNode does not have explicit output parameters in the traditional sense. Instead, its primary function is to save SVG files to disk, and it returns a dictionary containing information about the saved files. This includes the filename, subfolder, and type of each saved SVG, which can be used to verify the successful execution of the node and to locate the saved files on your system.

SaveSVGNode Usage Tips:

  • To ensure your SVG files are saved with meaningful names, customize the filename_prefix to include relevant information such as the creation date or specific project identifiers.
  • If you have metadata associated with your SVG files, make sure to include it, as the node can inject this metadata into the SVG content, preserving important information about your artwork.

SaveSVGNode Common Errors and Solutions:

FileNotFoundError

  • Explanation: This error occurs when the specified output directory does not exist or is inaccessible.
  • Solution: Verify that the output directory specified in the node's configuration exists and that you have the necessary permissions to write to it.

IOError

  • Explanation: An IOError may occur if there is an issue with writing the SVG file to disk, such as insufficient disk space or file system errors.
  • Solution: Check your disk space to ensure there is enough room for the SVG files. Additionally, inspect your file system for any errors that might be preventing file writing operations.

SaveSVGNode Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.