From 27e3db3148798a2221ca7842c414f8099c66cec9 Mon Sep 17 00:00:00 2001 From: brucew4yn3rp <135722417+brucew4yn3rp@users.noreply.github.com> Date: Sat, 19 Jul 2025 23:23:50 -0400 Subject: [PATCH 1/5] Create README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..601bc7a --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +This custom node allows users to selectively choose what to add to the generated image's metadata. + +image + +workflow From c5481d7ed3e4df2b546ddd6197b73551501b7b6b Mon Sep 17 00:00:00 2001 From: brucew4yn3rp <135722417+brucew4yn3rp@users.noreply.github.com> Date: Sat, 19 Jul 2025 23:24:51 -0400 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 601bc7a..048a8f1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -This custom node allows users to selectively choose what to add to the generated image's metadata. +This custom node allows users to selectively choose what to add to the generated image's metadata. Currently, there are 5 inputs allowed, with each needing a key and corresponding metadata pair. If the key is empty, that key:metadata pair will be ignored. image From 6f668dd087bcd5ef0acf1080d4f24d22e47b819a Mon Sep 17 00:00:00 2001 From: brucew4yn3rp <135722417+brucew4yn3rp@users.noreply.github.com> Date: Sat, 19 Jul 2025 23:26:00 -0400 Subject: [PATCH 3/5] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 048a8f1..1fe56d2 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,5 @@ This custom node allows users to selectively choose what to add to the generated image -workflow +workflow + From f3bc2dd2b9210fcdfd3fc46aac67c4c29c9dc9a1 Mon Sep 17 00:00:00 2001 From: brucew4yn3rp <135722417+brucew4yn3rp@users.noreply.github.com> Date: Sat, 19 Jul 2025 23:31:34 -0400 Subject: [PATCH 4/5] Update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1fe56d2..366a4f3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,18 @@ -This custom node allows users to selectively choose what to add to the generated image's metadata. Currently, there are 5 inputs allowed, with each needing a key and corresponding metadata pair. If the key is empty, that key:metadata pair will be ignored. +In an effort to clean up image metadata, this custom node allows users to selectively choose what to add to the generated image's metadata. As a result, images will not be able to load ComfyUI workflows. + +Currently, there are 5 inputs allowed, with each needing a key and corresponding metadata pair. If the key is empty, that key:metadata pair will be ignored. + +The most prevalent use case for such selectivity is being able to save the prompt in a clear manner, as seen below. To do so, the easiest method is to use a `String Literal` node when typing the prompt, which can output text to both `CLIP Text Encode (Prompt)` as well as the `Save Image (Selective Metadata)` node. image workflow +To install, simply follow the below instructions: +1. Navigate to ComfyUI directory in a command prompt / terminal window +2. `cd custom_nodes` +3. `git clone https://github.com/brucew4yn3rp/ComfyUI_SelectiveMetadata/` +4. `cd ComfyUI_SelectiveMetadata` +5. `pip install -r requirements.txt` + +If you use a venv with ComfyUI, make sure to activate it before doing step 5. This is a pretty lightweight node so you should already have the Python libraries required (`numpy, Pillow`) From 94584d85a09e921e02d3c6356269dbfc989a4b3f Mon Sep 17 00:00:00 2001 From: brucew4yn3rp <135722417+brucew4yn3rp@users.noreply.github.com> Date: Sat, 19 Jul 2025 23:32:13 -0400 Subject: [PATCH 5/5] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 366a4f3..7dfc5f4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ In an effort to clean up image metadata, this custom node allows users to select Currently, there are 5 inputs allowed, with each needing a key and corresponding metadata pair. If the key is empty, that key:metadata pair will be ignored. -The most prevalent use case for such selectivity is being able to save the prompt in a clear manner, as seen below. To do so, the easiest method is to use a `String Literal` node when typing the prompt, which can output text to both `CLIP Text Encode (Prompt)` as well as the `Save Image (Selective Metadata)` node. +The most prevalent use case for such selectivity is being able to save the prompt in a clear manner, as seen below. +- To do so, the easiest method is to use a `String Literal` node when typing the prompt, which can output text to both `CLIP Text Encode (Prompt)` as well as the `Save Image (Selective Metadata)` node. An example of this can be seen in the below workflow. image