ComfyUI > Nodes > Save Image with Generation Metadata > Save Image w/Metadata

ComfyUI Node: Save Image w/Metadata

Class Name

Save Image w_Metadata

Category
ImageSaverTools
Author
Girish Gopaul (Account age: 4247days)
Extension
Save Image with Generation Metadata
Latest Updated
2024-05-22
Github Stars
0.15K

How to Install Save Image with Generation Metadata

Install this extension via the ComfyUI Manager by searching for Save Image with Generation Metadata
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Save Image with Generation Metadata 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 w/Metadata Description

Save images with embedded metadata for AI art preservation and management in various formats with custom fields.

Save Image w/Metadata:

The Save Image w_Metadata node is designed to save images while embedding detailed metadata within the image files. This node is particularly useful for AI artists who want to preserve the context and parameters used during the image generation process, such as prompts, seed values, and other relevant information. By embedding metadata directly into the image files, you can ensure that all the essential details are retained and easily accessible for future reference or sharing. This node supports saving images in various formats, including PNG and JPEG, and allows for the inclusion of custom metadata fields, making it a versatile tool for managing and archiving your AI-generated artwork.

Save Image w/Metadata Input Parameters:

images

This parameter accepts a list of images that you want to save. Each image in the list will be processed and saved individually. The images should be in a format compatible with the node, typically as tensors or arrays.

seed_value

The seed value used during the image generation process. This value is crucial for reproducing the same image in future runs. It helps in maintaining consistency and traceability of the generated artwork.

steps

The number of steps taken during the image generation process. This parameter provides insight into the complexity and duration of the generation process.

cfg

The configuration settings used during the image generation. This includes various parameters that influence the output, such as model settings and other generation-specific options.

sampler_name

The name of the sampler used during the image generation. Different samplers can produce varying results, and this parameter helps in identifying the specific sampler applied.

scheduler

The scheduler used in the image generation process. This parameter helps in understanding the scheduling strategy employed during the generation.

positive

The positive prompt or keywords used to guide the image generation. This parameter is essential for understanding the creative direction and intent behind the generated image.

negative

The negative prompt or keywords used to avoid certain elements in the image generation. This helps in refining the output by excluding unwanted features.

modelname

The name of the model used for generating the image. This is important for identifying the specific AI model applied in the creation process.

quality_jpeg_or_webp

The quality setting for saving images in JPEG or WebP format. This parameter controls the compression level and quality of the saved image, with higher values indicating better quality.

lossless_webp

A boolean parameter indicating whether to save WebP images in a lossless format. Lossless WebP preserves the original quality of the image without any compression artifacts.

width

The width of the image in pixels. This parameter defines the horizontal dimension of the saved image.

height

The height of the image in pixels. This parameter defines the vertical dimension of the saved image.

counter

A counter used to generate unique filenames for each saved image. This helps in organizing and distinguishing multiple images saved in a single session.

filename

The base filename for the saved images. The final filename will be generated by appending the counter and other relevant information to this base name.

path

The directory path where the images will be saved. This parameter specifies the location on your filesystem for storing the saved images.

extension

The file extension for the saved images, such as 'png' or 'jpg'. This determines the format in which the images will be saved.

time_format

The format for including timestamps in the filenames. This helps in organizing images chronologically and ensuring unique filenames.

prompt

(Optional) The prompt used during the image generation. This parameter is embedded in the metadata to provide context for the generated image.

extra_pnginfo

(Optional) Additional metadata fields to be included in the PNG info. This allows for the inclusion of custom metadata beyond the standard parameters.

Save Image w/Metadata Output Parameters:

paths

A list of filenames for the saved images. Each entry in the list corresponds to an image saved during the process, providing a reference to the location and name of the saved files.

Save Image w/Metadata Usage Tips:

  • Ensure that the images parameter is correctly formatted and compatible with the node to avoid errors during the saving process.
  • Use descriptive and unique values for the filename and path parameters to organize your saved images effectively.
  • Leverage the extra_pnginfo parameter to include any additional metadata that might be relevant for future reference or sharing.
  • Adjust the quality_jpeg_or_webp parameter based on your needs for image quality versus file size, especially when saving in JPEG or WebP formats.

Save Image w/Metadata Common Errors and Solutions:

"Invalid image format"

  • Explanation: The images provided are not in a compatible format.
  • Solution: Ensure that the images are in a supported format, such as tensors or arrays, before passing them to the node.

"File path not found"

  • Explanation: The specified directory path does not exist.
  • Solution: Verify that the path parameter points to a valid directory on your filesystem. Create the directory if it does not exist.

"Unsupported file extension"

  • Explanation: The file extension provided is not supported by the node.
  • Solution: Use a supported file extension, such as 'png' or 'jpg', for the extension parameter.

"Metadata insertion failed"

  • Explanation: There was an issue embedding metadata into the image file.
  • Solution: Check the values provided for metadata fields, such as prompt and extra_pnginfo, to ensure they are correctly formatted and valid.

Save Image w/Metadata Related Nodes

Go back to the extension to check out more related nodes.
Save Image with Generation Metadata
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.