ComfyUI > Nodes > Prompt Info > Load Image With Info

ComfyUI Node: Load Image With Info

Class Name

LoadImageWithInfo

Category
prompt_info
Author
chrisgoringe (Account age: 4322days)
Extension
Prompt Info
Latest Updated
2024-05-22
Github Stars
0.03K

How to Install Prompt Info

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

Load Image With Info Description

LoadImageWithInfo node loads images with metadata, enhancing workflow for AI artists.

LoadImageWithInfo:

The LoadImageWithInfo node is designed to load an image along with its associated metadata, providing a comprehensive solution for AI artists who need to work with both visual and textual data. This node extends the functionality of the LoadImage node by not only loading the image and its mask but also extracting and returning any embedded workflow information stored within the image file. This is particularly useful for artists who need to keep track of the creative process, as it allows for the retrieval of prompts and workflow values that were used during the image's creation. By leveraging this node, you can ensure that all relevant information is preserved and accessible, facilitating a more organized and efficient workflow.

LoadImageWithInfo Input Parameters:

image

The image parameter specifies the path to the image file that you want to load. This parameter is crucial as it determines which image will be processed by the node. The image file should be in a format supported by the PIL library, such as PNG or JPEG. The node will use this path to locate the image and extract both the visual data and any embedded metadata. Ensure that the file path is correct and that the image file exists at the specified location to avoid errors during execution.

LoadImageWithInfo Output Parameters:

image

The image output provides the loaded image data in a format that can be used by subsequent nodes in your workflow. This output is essential for any further image processing tasks you may want to perform, such as editing, filtering, or analysis.

mask

The mask output contains the mask data associated with the loaded image. This mask can be used for various purposes, such as isolating specific parts of the image for targeted processing or applying effects. The mask is particularly useful in workflows that involve inpainting or other forms of image manipulation.

info

The info output returns the extracted metadata from the image file, specifically the workflow information embedded within it. This metadata is provided as a JSON string, which includes details about the prompts and workflow values used during the image's creation. This output is invaluable for keeping track of the creative process and ensuring that all relevant information is preserved and accessible.

LoadImageWithInfo Usage Tips:

  • Ensure that your image files are properly annotated with metadata if you want to take full advantage of the info output. This can be done using tools that support embedding metadata into image files.
  • Use the info output to document your creative process, making it easier to replicate or modify your workflow in the future.
  • Combine this node with other image processing nodes to create a comprehensive and efficient workflow that leverages both visual and textual data.

LoadImageWithInfo Common Errors and Solutions:

FileNotFoundError

  • Explanation: This error occurs when the specified image file cannot be found at the given path.
  • Solution: Ensure that the file path is correct and that the image file exists at the specified location.

AttributeError: 'Image' object has no attribute 'text'

  • Explanation: This error occurs when the image file does not contain any embedded metadata.
  • Solution: Make sure that the image file has metadata embedded in it. You can use tools that support embedding metadata into image files to add the necessary information.

JSONDecodeError

  • Explanation: This error occurs when the metadata in the image file is not in a valid JSON format.
  • Solution: Verify that the metadata embedded in the image file is correctly formatted as JSON. Use a JSON validator to check for any syntax errors.

KeyError: 'workflow'

  • Explanation: This error occurs when the metadata does not contain the expected 'workflow' key.
  • Solution: Ensure that the metadata includes a 'workflow' key with the necessary information. If the workflow data is missing, you may need to re-annotate the image file with the correct metadata.

Load Image With Info Related Nodes

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