Add a node to save images with metadata (PNGInfo) extracted from the input values of each node. Since the values are extracted dynamically, values output by various extension nodes can be added to metadata.
日本語版READMEはこちら。
cd <ComfyUI directory>/custom_nodes
git clone https://github.com/nkchocoai/ComfyUI-SaveImageWithMetaData.git
images
received as input as an image with metadata (PNGInfo).sampler_selection_method
and the input of the previously executed node.
SAMPLERS
in the file py/defs/samplers.py and the file in py/defs/ext/.filename_prefix
will be replaced with the retrieved information.| Key | Information to be replaced | | --------------- | ------------------------------------- | | %seed% | seed value | | %width% | Image width | | %height% | Image height | | %pprompt% | Positive Prompt | | %pprompt:[n]% | first n characters of Positive Prompt | | %nprompt% | Negative Prompt | | %nprompt:[n]% | First n characters of Negative Prompt | | %model% | Checkpoint name | | %model:[n]% | First n characters of Checkpoint name | | %date% | Date of generation(yyyyMMddhhmmss) | | %date:[format]% | Date of generation |
[format]
in %date:[format]%
.| Identifier | Description | | ---------- | ----------- | | yyyy | year | | MM | month | | dd | day | | hh | hour | | mm | minute | | ss | second |
sampler_selection_node_id
.