Nodes Browser
ComfyDeploy: How ComfyUI PNG Metadata works in ComfyUI?
What is ComfyUI PNG Metadata?
Add custom Metadata fields to your saved PNG files.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ComfyUI PNG Metadata
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
ComfyUI-PNG-Metadata Custom Nodes
<img src="examples/workflow.png"/>ComfyUI-PNG-Metadata is a set of custom nodes for ComfyUI. It provides nodes that allow to add custom metadata to your PNG files, such as the prompt and settings used to generate the image. This also can be used to add "parameters" metadata item compatible with AUTOMATIC1111 metadata.
To use the nodes, simply add them to your workflow and connect the inputs. This will automatically add the metadata to any standard "save image" nodes.
The nodes provided in this library are:
- Set Metadata - Set a single custom metadata field and optionally update 'parameters' field in png metadata.
- Set Metadata (All) - Set multiple metadata at once and write them to 'parameters' field in png metadata.
Note: Currently the node execution order is not enforced, so if Metadata nodes execute after the Save Image node, the metadata will not be written to the image. This will be fixed in a future release.
Installation
Using ComfyUI-Manager
- Install ComfyUI-Manager if it isn't already.
- Press Install Custom Nodes from the ComfyUI-Manager menu
- Search for ComfyUI-PNG-Metadata
- Click install
Manual installation
Follow the steps below to install the ComfyUI-PNG-Metadata Library. These commands assume your current working directory is the ComfyUI root directory.
- Clone the repository:
git clone https://github.com/romeobuilderotti/ComfyUI-PNG-Metadata custom_nodes/ComfyUI-PNG-Metadata
- Restart your ComfyUI.
- You can find example workflows in the
custom_nodes/ComfyUI-PNG-Metadata/examples
directory.