ComfyUI > Nodes > ComfyUI-TG > TG_ImageSaver

ComfyUI Node: TG_ImageSaver

Class Name

TG_ImageSaver

Category
šŸ”µ COMFYUI-TG šŸ”µ
Author
daxcay (Account age: 760days)
Extension
ComfyUI-TG
Latest Updated
2024-11-28
Github Stars
0.03K

How to Install ComfyUI-TG

Install this extension via the ComfyUI Manager by searching for ComfyUI-TG
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-TG 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

TG_ImageSaver Description

Saves and organizes ComfyUI images with metadata, consistent naming, and compression.

TG_ImageSaver:

The TG_ImageSaver node is designed to facilitate the saving of images generated or processed within the ComfyUI environment. Its primary function is to take a collection of images and store them in a specified directory on your system. This node is particularly beneficial for AI artists who need to manage and organize their image outputs efficiently. By automatically handling the conversion of image data into a format suitable for storage and optionally embedding metadata such as prompts or additional information, TG_ImageSaver streamlines the workflow of saving images. It ensures that images are saved with a consistent naming convention and compression level, making it easier to keep track of multiple outputs. The node's ability to handle metadata also allows for better documentation and retrieval of image generation parameters, which can be crucial for iterative design processes.

TG_ImageSaver Input Parameters:

Images

This parameter expects a collection of images that you wish to save. The images should be in a format compatible with the node's processing capabilities, typically as tensors or arrays that can be converted into image files. The function of this parameter is to provide the raw image data that will be processed and saved to disk. There are no specific minimum or maximum values for this parameter, but it should be a valid image data type.

Path

The Path parameter specifies the directory where the images will be saved. It is a string that represents the file path on your system. This parameter is crucial as it determines the location of the saved images, allowing you to organize your outputs effectively. There are no default values, but the path must be a valid directory path where you have write permissions.

prompt (hidden)

The prompt parameter is an optional input that allows you to include a textual description or prompt associated with the image generation process. This information can be embedded as metadata within the saved image files, aiding in documentation and retrieval of the creative process. It is hidden by default and does not have specific value constraints.

extra_pnginfo (hidden)

This parameter allows you to include additional metadata in the form of key-value pairs. It is useful for embedding extra information about the image, such as settings or parameters used during generation. Like the prompt, it is hidden by default and does not have specific value constraints.

TG_ImageSaver Output Parameters:

The TG_ImageSaver node does not have explicit output parameters listed in the context. However, it returns a dictionary containing a UI element with details about the saved images, such as filenames and subfolder paths. This output is important for verifying that the images have been saved correctly and for accessing them later.

TG_ImageSaver Usage Tips:

  • Ensure that the Path parameter points to a valid directory where you have write permissions to avoid errors during the saving process.
  • Utilize the prompt and extra_pnginfo parameters to embed useful metadata within your images, which can be helpful for tracking and documentation purposes.
  • Regularly check the output dictionary to confirm that images are saved as expected and to retrieve their file paths easily.

TG_ImageSaver Common Errors and Solutions:

Error saving image: [Error Message]

  • Explanation: This error occurs when there is an issue during the image saving process, such as an invalid file path or insufficient permissions.
  • Solution: Verify that the Path parameter is set to a valid directory and that you have the necessary permissions to write to that location. Ensure that the images being saved are in a compatible format.

TG_ImageSaver Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-TG
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 Models, enabling artists to harness the latest AI tools to create incredible art.