ComfyUI  >  Nodes  >  Mikey Nodes >  AddMetaData (Mikey)

ComfyUI Node: AddMetaData (Mikey)

Class Name

AddMetaData

Category
Mikey/Meta
Author
bash-j (Account age: 4196 days)
Extension
Mikey Nodes
Latest Updated
6/15/2024
Github Stars
0.1K

How to Install Mikey Nodes

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

AddMetaData (Mikey) Description

Enhance images with custom metadata for categorization, searchability, and context.

AddMetaData (Mikey):

The AddMetaData node is designed to enhance your images by embedding custom metadata into them. This node allows you to add descriptive labels and text values to your images, which can be useful for categorization, searchability, and providing additional context. By incorporating metadata, you can make your images more informative and easier to manage, especially in large collections. The primary function of this node is to take an image and append the specified metadata, ensuring that the information is stored within the image file itself.

AddMetaData (Mikey) Input Parameters:

image

This parameter represents the image to which you want to add metadata. It is the primary input and must be provided for the node to function. The image can be in any standard format that supports metadata embedding.

label

The label parameter is a string that serves as the key for the metadata entry. It is a descriptive tag that helps identify the type of information being added. For example, you might use labels like "Author," "Description," or "Location." This parameter does not support multiline input and has a placeholder text "Label for metadata" to guide you.

text_value

The text_value parameter is the actual content or value associated with the label. It is a string that can contain detailed information relevant to the label. This parameter supports multiline input, allowing you to add extensive descriptions or notes. The placeholder text "Text to add to metadata" is provided to help you understand its purpose.

prompt

This hidden parameter is used internally to handle prompts. It is not required to be set manually and is managed by the node's internal logic.

extra_pnginfo

This hidden parameter is used to store additional metadata information. It is managed internally and does not require manual input. If not provided, the node initializes it as an empty dictionary.

AddMetaData (Mikey) Output Parameters:

image

The output is the same image provided as input but with the added metadata. This enhanced image now contains the specified label and text value embedded within its metadata, making it more informative and easier to manage.

AddMetaData (Mikey) Usage Tips:

  • Use descriptive and consistent labels to ensure that the metadata is easily understandable and searchable.
  • Take advantage of the multiline support in the text_value parameter to add detailed descriptions or notes.
  • Consider using metadata to store information like the creation date, author, or any other relevant details that can help in organizing and retrieving images later.

AddMetaData (Mikey) Common Errors and Solutions:

"Label already exists in metadata"

  • Explanation: This error occurs when the specified label already exists in the image's metadata.
  • Solution: The node appends the new text value to the existing label. If you want to replace the existing value, you will need to manually edit the metadata or use a different label.

"Image format does not support metadata"

  • Explanation: Some image formats may not support metadata embedding.
  • Solution: Ensure that you are using an image format that supports metadata, such as PNG or JPEG.

"Invalid input parameters"

  • Explanation: This error occurs if the required input parameters are not provided or are in an incorrect format.
  • Solution: Double-check that all required parameters (image, label, and text_value) are provided and correctly formatted.

AddMetaData (Mikey) Related Nodes

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