Nodes/comfy_Pond_Nodes/🐳删除元数据
ComfyUI Node

🐳删除元数据

The scrubber that stops your PNG from leaking your whole workflow

By Pondowner857·Created about a year ago·Updated 21 days ago· 45
🐳删除元数据
  • 图像
  • 图像
文件名前缀ComfyUI_clean
删除所有元数据true
保存工作流false
自定义元数据

The privacy problem with ComfyUI is structural: a PNG saved by the default SaveImage carries your entire workflow as embedded metadata - the full prompt, negative prompt, seed, exact checkpoint, every LoRA by name and hash, and the complete node graph. Post that image anywhere and you've published your recipe along with it, whether you meant to or not. RemoveMetadata, from 🐳 Pond Nodes (comfy_Pond_Nodes), is the scrubber: it takes an image and writes out a clean copy with the metadata stripped.

Display name "🐳删除元数据." One thing to get straight immediately - it doesn't modify your original file. It's an output node that saves a new PNG to ComfyUI/output/, metadata-free.

How it works

The image tensor becomes a PIL image, and Pillow's PngInfo is used to control exactly what gets written. With 删除所有元数据 on (default), the saved PNG carries no prompt and no workflow chunks - just pixels. Turn that off and you open the door to the optional fields: 保存工作流 (embed the workflow anyway, the opposite of the default) and 自定义元数据 (write your own text chunk). So the node is really two tools in one: a scrubbing save node, and a "save with my own metadata" node.

The inputs that matter

  • 图像 - the image to re-save.
  • 文件名前缀 (filename prefix, default ComfyUI_clean) - files come out as ComfyUI_clean_00000.png in your output folder, batched images numbered per frame.
  • 删除所有元数据 (default on) - the scrub switch. Leave it on for clean files.

The two optionals, 保存工作流 and 自定义元数据, only matter if you deliberately want metadata in the output - a niche use, but handy for producing "I stripped everything except a custom signature" files.

Output is 图像 (the processed batch). It's an output node, so it always runs and it's your terminal step.

Installing it

Standard pack install - Manager search comfy_Pond_Nodes, or:

cd ComfyUI/custom_nodes
git clone https://github.com/Pondowner857/comfy_Pond_Nodes
cd comfy_Pond_Nodes
pip install -r requirements.txt

Restart, under 🐳Pond/元数据. Pillow-only; no heavy deps. (Pack-wide note: README flags a console-spam conflict with comfyui_HiDream-Sampler.)

The gotcha

Scrubbing happens at save time, which means the cleanup is downstream of whatever you were generating. If you want this to be automatic, swap it in as your terminal save node instead of SaveImage, rather than scrubbing retroactively. And remember the bigger picture from the metadata world: the workflow only travels in PNG text chunks - if you export to JPEG or WebP, the graph is gone anyway, but this node is for when you need a PNG with the pixels intact and the source code removed. Before you post, it's also worth pairing this with MetadataInspector to confirm what was actually in the file - because "clean" is only meaningful if you can verify it's clean.

Category🐳Pond/元数据

Inputs (5)

NameTypeDefaultDescription
图像IMAGE
文件名前缀STRINGComfyUI_clean
删除所有元数据BOOLEANtrue
保存工作流optBOOLEANfalse
自定义元数据optSTRING

Outputs (1)

NameTypeDescription
图像IMAGE