main
Refactor LoadImageWithMetadata to delegate to original implementation, add README and pyproject.toml
ComfyUI Metadata Nodes
A ComfyUI custom node extension that preserves and extracts workflow metadata from PNG images.
Features
- Load Image with Metadata: Loads images from disk while preserving ComfyUI workflow metadata embedded in PNG files.
- Extract Metadata Text: Extracts text fields from supported text nodes including CLIP Text Encode (Prompt), Display Any (rgthree), and Show Any (comfyui-easy-use).
Installation
- Copy this entire folder to your ComfyUI
custom_nodesdirectory. - Restart ComfyUI or reload custom nodes.
- Use
Load Image with Metadatain place of the built-inLoad Imagenode when loading images with embedded metadata.
Usage
Loading Images with Metadata
Use Load Image with Metadata instead of Load Image:
- Load a PNG file that contains ComfyUI workflow metadata.
- The node outputs both the image tensor and the workflow metadata string.
- Connect the metadata output to an
Extract Metadata Textnode.
Extracting Text
Use Extract Metadata Text to extract text from supported text nodes:
- Connect the
workflow_metadataoutput fromLoad Image with Metadata. - Optionally specify a
node_id(defaults to 0 for auto-detection). - The node outputs the extracted text.
Supported text nodes:
- CLIP Text Encode (Prompt)
- Display Any (rgthree)
- Show Any (comfyui-easy-use)
Node IDs
When multiple supported text nodes are present, you'll need to specify the node ID manually. The error message will show the discovered node IDs.
License
MIT
Languages
Python
100%