ComfyUI  >  Nodes  >  ComfyUI >  Save Image

ComfyUI Node: Save Image

Class Name

SaveImage

Category
image
Author
ComfyAnonymous (Account age: 598 days)
Extension
ComfyUI
Latest Updated
8/12/2024
Github Stars
45.9K

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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Save Image Description

Facilitates saving images with metadata for AI artists in ComfyUI.

Save Image:

The SaveImage node is designed to facilitate the saving of images generated or processed within the ComfyUI environment. This node is essential for AI artists who need to preserve their work in a structured and organized manner. By using this node, you can save images with specific metadata, such as prompts and additional information, ensuring that all relevant details are stored alongside the image. This functionality is particularly beneficial for keeping track of different versions of your artwork, maintaining a history of your creative process, and sharing your work with others in a consistent format.

Save Image Input Parameters:

images

This parameter expects a list of images that you want to save. Each image in the list should be in a format compatible with the node, typically as a tensor or array. The images parameter is crucial as it directly determines what content will be saved to your specified directory.

filename_prefix

This string parameter allows you to specify a prefix for the filenames of the saved images. The default value is "ComfyUI". This prefix helps in organizing and identifying your saved images, especially when dealing with multiple batches or versions. The filename_prefix is appended with additional information to ensure unique filenames.

prompt

This hidden parameter can include the prompt used to generate the images. It is stored as metadata within the saved image file. Including the prompt is useful for documentation and reference purposes, allowing you to recall the exact input that led to the creation of the image.

extra_pnginfo

Another hidden parameter, extra_pnginfo, allows you to add additional metadata to the saved image. This can include any extra information you deem relevant, such as settings, parameters, or notes. This metadata is stored within the image file and can be accessed later for review or analysis.

Save Image Output Parameters:

ui

The output parameter ui contains a dictionary with details about the saved images. This includes the filenames, subfolder paths, and the type of save operation performed. The ui output is essential for verifying that the images were saved correctly and for accessing the saved files for further use or sharing.

Save Image Usage Tips:

  • Ensure that the images parameter contains valid image data to avoid errors during the save process.
  • Use a meaningful filename_prefix to keep your saved images organized and easily identifiable.
  • Take advantage of the prompt and extra_pnginfo parameters to store valuable metadata with your images, aiding in future reference and analysis.
  • Regularly check the output directory to ensure that images are being saved as expected and to manage storage space effectively.

Save Image Common Errors and Solutions:

"Invalid image data"

  • Explanation: This error occurs when the images parameter contains data that is not in a valid image format.
  • Solution: Verify that the images you are trying to save are in the correct format and compatible with the node.

"Failed to save image"

  • Explanation: This error can happen if there is an issue with the file path or write permissions in the output directory.
  • Solution: Ensure that the output directory exists and that you have the necessary permissions to write files to it. Check the file path for any errors or typos.

"Metadata addition failed"

  • Explanation: This error indicates a problem with adding metadata to the image file.
  • Solution: Review the prompt and extra_pnginfo parameters to ensure they contain valid data. Avoid using special characters that might cause issues with metadata storage.

Save Image Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.