ComfyUI  >  Nodes  >  Avatar Graph >  Save Image With Workflow

ComfyUI Node: Save Image With Workflow

Class Name

Save Image With Workflow

Category
image
Author
avatechai (Account age: 905 days)
Extension
Avatar Graph
Latest Updated
5/22/2024
Github Stars
0.2K

How to Install Avatar Graph

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

Save images without workflow metadata for AI artists, ensuring clean datasets for sharing and publishing.

Save Image With Workflow:

The Save Image With Workflow node is designed to save images generated within a workflow while excluding specific metadata related to the workflow itself. This node is particularly useful for AI artists who want to preserve the integrity of their images without embedding unnecessary workflow details. By filtering out metadata associated with the Save Image With Workflow class type, this node ensures that the saved images contain only the relevant information, such as prompts and additional metadata, without cluttering the file with workflow-specific data. This functionality is essential for maintaining a clean and organized dataset, especially when sharing or publishing images.

Save Image With Workflow Input Parameters:

images

This parameter accepts a list of images to be saved. Each image is processed to ensure it is in the correct format and resolution before saving. The images are converted from tensors to numpy arrays, then to PIL images, and finally saved as PNG files. This parameter is crucial as it determines the content that will be saved by the node.

filename_prefix

This parameter allows you to specify a prefix for the filenames of the saved images. It helps in organizing and identifying the images based on the workflow or project they belong to. The default value is "ComfyUI", but it can be customized to suit your needs.

prompt

This optional parameter accepts a dictionary containing the prompt information used to generate the images. If provided, this prompt is embedded in the image metadata, allowing you to retain the context of the image generation process. This is particularly useful for tracking and reproducing specific image outputs.

extra_pnginfo

This optional parameter accepts additional metadata to be embedded in the saved images. It is a dictionary where each key-value pair represents a piece of metadata. This parameter allows you to include extra information, such as settings or parameters used during image generation, without cluttering the image file with workflow-specific data.

Save Image With Workflow Output Parameters:

ui

This output parameter returns a dictionary containing information about the saved images. It includes the filenames, subfolders, and types of the saved images. This information is useful for further processing or referencing the saved images within the workflow.

Save Image With Workflow Usage Tips:

  • Ensure that the images parameter contains valid image tensors to avoid errors during the saving process.
  • Customize the filename_prefix to organize your saved images based on different projects or workflows.
  • Use the prompt parameter to embed context-specific information in the image metadata, making it easier to track and reproduce specific outputs.
  • Leverage the extra_pnginfo parameter to include additional metadata without cluttering the image file with unnecessary workflow details.

Save Image With Workflow Common Errors and Solutions:

"Invalid image tensor"

  • Explanation: This error occurs when the images parameter contains invalid or corrupted image tensors.
  • Solution: Ensure that the images passed to the node are valid and properly formatted tensors.

"Failed to save image"

  • Explanation: This error can occur if there is an issue with the file path or permissions when attempting to save the image.
  • Solution: Verify that the output directory exists and that you have the necessary permissions to write files to it.

"Metadata embedding failed"

  • Explanation: This error occurs if there is an issue with embedding the prompt or extra metadata into the image file.
  • Solution: Ensure that the prompt and extra_pnginfo parameters are correctly formatted and contain valid data.

Save Image With Workflow Related Nodes

Go back to the extension to check out more related nodes.
Avatar Graph
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.