Remove debug statement, alter extra_pnginfo to remove Workflow.

This commit is contained in:
Thomas Ward
2024-05-12 17:49:44 -04:00
parent 07efbfe59c
commit 63e878796e
+2 -1
View File
@@ -162,8 +162,9 @@ class HelperNodes_SaveImage(BaseNode):
if prompt is not None and include_prompt_in_metadata:
metadata.add_text("prompt", json.dumps(prompt))
if extra_pnginfo is not None and include_extra_pnginfo:
print(extra_pnginfo.keys())
for x in extra_pnginfo:
if x.lower() == 'workflow' and not include_prompt_in_metadata:
continue # skip adding the workflow.
metadata.add_text(x, json.dumps(extra_pnginfo[x]))
filename = f"{filename_prefix}.png"