comfyui-too-xmp-metadata
Using ComyUI to write specific XMP metadata on images
Perfil do pacote
- Status
- Verificado
- Publicador
- @tetsuoo-online
- Fonte
- GitHub
README
Image
Examples | Installation | Tiny node list |
This is the Comfyui version of a personal project I started last year (2024) with GPT/Claude, as a shell/commandline tool to add tags to ANY images on my computer.
These custom nodes for ComfyUI will allow you to READ and WRITE XMP METADATA to images. A sidenote though, this is not designed to handle image generation datas, there's already plenty of nodes for that.
Examples
image
Adding tags to an existing image without modifying it
- Use the "Write XMP Metadata (Lossless)" node
- Enter the path to your image in
input_image_path - Add your tags as comma-separated values in
metadata(e.g., "landscape, sunset, ocean") - Run the node
- The tagged image will be saved in a
"tagged"subfolder in the same directory as the original, unless you specify a custom path
Adding metadata to a generated image
- Connect your image generation output to the "Write XMP Metadata" node
- Add your metadata in the
metadatafield - Choose a format mode (Smart format is recommended)
- Run the node
- The image with metadata will be saved in the output directory
Reading tags from an image
- Use the "Read XMP Metadata" node
- Enter the path to your image in
image - Set
metadata_typeto "Subject" to extract tags - Run the node
- The tags will be returned as a string
Metadata Format
The metadata input can be either:
- A simple string with comma-separated values (e.g., "landscape, sunset, ocean")
- A JSON object with a "tags" key and other custom fields:
{ "tags": ["landscape", "sunset", "ocean"], "author": "John Doe", "description": "Beautiful sunset at the beach" }
If you had similar needs to use prompt keywords and other datas from AI generated images to use as search tags, I can't recommend anything but the amazing Diffusion Toolkit it's awesome, TRY IT IT'S GREAT Picasa was nice too with tags, back in the days... a bit limited though. A bit dead too, long ago x) Sad. And Lightroom is... meh. Nah.
Installation
-
Clone this repository into the
custom_nodesfolder of your ComfyUI installation:git clone https://github.com/tetsuoo-online/comfyui-too-xmp-metadata.git -
Make sure ExifTool is installed:
- Download it here
- rename the EXE (usually called "exiftool(-k).exe") to
exifTool.exethen put it to the package root folder.
Requirements
- ComfyUI
- ExifTool
- PIL/Pillow
- NumPy
Tiny node list
- Inputs:
image: Path to the image filemetadata_type: Type of metadata to extract (Subject, Description, Create Date, Modify Date, or Custom)custom_metadata: Custom metadata field
Nós neste pacote
Nós 4
Nós neste pacote
Nós 4- ClearImageMetadata
- ReadXMPMetadata
- WriteXMPMetadataLossless
- WriteXMPMetadataTensor
Fontes
3 fontes
Fontes
3 fontesVerificado 14 de out.
Verificado 14 de out.
Trechos de fonte
1 trecho
Trechos de fonte
1 trechoSource context: Repo tetsuoo-online/comfyui-too-xmp-metadata
