Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-SaveImageWithMetaData > Save Image With Metadata

ComfyUI Node: Save Image With Metadata

Class Name

SaveImageWithMetaData

Category
SaveImage
Author
nkchocoai (Account age: 872days)
Extension
ComfyUI-SaveImageWithMetaData
Latest Updated
2025-03-30
Github Stars
0.12K

How to Install ComfyUI-SaveImageWithMetaData

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

Save Image With Metadata Description

Automate embedding metadata into image files for AI artists to preserve creation details and track creative processes efficiently.

Save Image With Metadata:

The SaveImageWithMetaData node is designed to enhance your image-saving process by embedding metadata directly into the image files. This node is particularly beneficial for AI artists who want to preserve detailed information about the image creation process, such as the parameters used, prompts, and additional metadata. By integrating metadata into the image, you can ensure that all relevant information is stored alongside the visual content, making it easier to track and reproduce creative processes. This node automates the generation and embedding of metadata, allowing you to focus on your artistic endeavors without worrying about manually documenting each step.

Save Image With Metadata Input Parameters:

sampler_selection_method

This parameter determines the method used to select the sampler node, which is crucial for generating the PNG metadata. It impacts how the node traces and identifies the appropriate sampler node in the workflow. The selection method can influence the metadata captured, ensuring it accurately reflects the image generation process. The specific options for this parameter are not detailed in the context, but it typically involves choosing between different selection strategies.

sampler_selection_node_id

This parameter specifies the unique identifier of the sampler node to be used in the metadata generation process. It ensures that the correct node is referenced when tracing the workflow and capturing relevant inputs. The node ID is essential for accurately linking the metadata to the specific sampler used during image creation.

civitai_sampler

This parameter indicates whether to save the sampler information from Civitai, a platform for sharing AI-generated content. Including this information in the metadata can be valuable for artists who use Civitai as part of their workflow, as it provides additional context about the tools and settings used in the image creation process.

disable_metadata

This boolean parameter allows you to disable the embedding of metadata into the image. When set to True, the node will not include any metadata, which might be useful if you want to save a clean version of the image without additional information. The default value is typically False, meaning metadata is included by default.

save_workflow_image

This boolean parameter controls whether the workflow image is saved alongside the metadata. If set to True, the node will include a visual representation of the workflow in the metadata, providing a comprehensive overview of the image creation process. This can be particularly useful for documentation and sharing purposes.

filename_prefix

This parameter allows you to specify a prefix for the output filename. It helps in organizing and categorizing saved images, making it easier to identify and retrieve them later. The prefix is formatted based on the metadata, ensuring consistency and clarity in file naming.

Save Image With Metadata Output Parameters:

output_path

The output_path parameter provides the file path where the image with embedded metadata is saved. This output is crucial as it indicates the location of the saved file, allowing you to access and utilize the image in subsequent tasks or share it with others. The path is generated based on the specified filename prefix and output directory, ensuring that the file is stored in an organized manner.

Save Image With Metadata Usage Tips:

  • Ensure that the sampler_selection_method and sampler_selection_node_id are correctly set to capture accurate metadata reflecting your image creation process.
  • Use the filename_prefix to categorize and organize your saved images, making it easier to manage and retrieve them later.
  • Consider enabling save_workflow_image if you want a visual representation of your workflow included in the metadata, which can be helpful for documentation and sharing.

Save Image With Metadata Common Errors and Solutions:

"Directory does not exist"

  • Explanation: This error occurs when the specified output directory for saving the image does not exist.
  • Solution: Ensure that the directory path is correct and that the directory exists. The node attempts to create the directory if it doesn't exist, but you can manually create it to avoid this error.

"Invalid sampler node ID"

  • Explanation: This error indicates that the provided sampler_selection_node_id does not correspond to a valid node in the workflow.
  • Solution: Verify that the node ID is correct and corresponds to an existing sampler node in your workflow. Double-check the node connections and IDs.

"Metadata embedding failed"

  • Explanation: This error suggests that there was an issue embedding metadata into the image file.
  • Solution: Check if the metadata format is correct and that all required parameters are provided. Ensure that the image file format supports metadata embedding.

Save Image With Metadata Related Nodes

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

Save Image With Metadata