What do Stable Diffusion and ComfyUI hide in your PNG files?
Short answer
Local Stable Diffusion tools save your whole generation recipe inside the image. AUTOMATIC1111 and Forge write a PNG text chunk called parameters with the prompt, negative prompt, seed, sampler and model. ComfyUI writes prompt and workflow chunks holding the full node graph. InvokeAI uses invokeai_metadata and invokeai_graph. Anyone who opens the file can read it. Removing the text chunks clears it without touching pixels.
Stable Diffusion metadata is the opposite of a signed C2PA label. It's plain text, nobody verifies it, and it often holds far more than a label would. AUTOMATIC1111, Forge, ComfyUI and InvokeAI save the exact recipe that produced the image: prompt, negative prompt, seed, model, sometimes your whole node graph. Post the PNG and anyone can drag it into their own UI and rebuild your work.
What does each tool write into the file?
| Tool | Where it's stored | What's in it | Switch it off at the source |
|---|---|---|---|
| AUTOMATIC1111, Forge | PNG tEXt chunk named parameters; EXIF UserComment in JPEG, WebP and AVIF | Prompt, negative prompt, steps, sampler, CFG, seed, size, model name and hash, VAE, version | Setting: “Write infotext to metadata of the generated image” |
| ComfyUI | PNG text chunks prompt (the executed graph) and workflow (the editor graph) | Every node and input: prompt text, seeds, model and LoRA file names, input image names | Launch flag --disable-metadata |
| InvokeAI | PNG text chunks invokeai_metadata, invokeai_workflow, invokeai_graph | Generation settings, workflow and graph | Not covered here; check your version's settings |
| NovelAI | Alpha channel (“stealth pnginfo”), plus a signature field | Prompt and settings | Not documented |
The A1111 features page describes it as adding “information about generation parameters to PNG as a text chunk”. The source code names the key parameters and, for JPEG and WebP, writes the same text into EXIF UserComment. Optional settings add the model name and hash, VAE name and hash, and program version, all on by default. The user name is added only if you enable it.
ComfyUI's README says you can drag any image it made onto the canvas “to get back the full workflow that made it, seeds included.” That's useful for you and just as useful for anyone you share the file with. InvokeAI's chunk names come from its image storage code.
Why is this a privacy problem?
Prompt leakage is the obvious part: a carefully tuned prompt is work you may not want to give away. The less obvious parts:
- Negative prompts often say more about your intent than the prompt.
- Model and LoRA names can reveal private fine-tunes, including ones trained on a real person.
- Input image names in ComfyUI graphs can expose file names from your own drive.
- Seeds let someone reproduce your image exactly.
Our test PNG held the full prompt, negative prompt, seed, sampler and model name in parameters, plus a ComfyUI workflow JSON. All of it was removed.
Do platforms label these files?
These chunks aren't the C2PA or IPTC signals that Meta, TikTok and LinkedIn describe reading, so they're not what usually triggers platform AI labels. If your setup also writes XMP or C2PA fields, the checker lists them separately, and platforms also run classifiers. Check your own file instead of assuming.
How do you check a Stable Diffusion or ComfyUI image?
- Drop the PNG, JPEG or WebP into the tool above. Nothing is uploaded.
- Look for “Stable Diffusion prompt & settings”, “ComfyUI workflow & prompt” or “InvokeAI prompt & settings”. Other JSON with prompt fields shows up as an AI prompt finding.
How do you remove the prompt and workflow?
- Drop one file or a whole folder; there's no batch limit.
- The PNG preset removes every
tEXt,zTXtandiTXtchunk, pluscaBXand unknown chunks. It keeps image data, color profile and transparency. - Download, or use Download all for a ZIP. Each output is re-scanned and every finding marked Removed or Kept.
Keep an uncleaned copy if you want to reload your workflows later. The PNG AI metadata remover has the same engine with PNG-specific notes.
What can't cleaning change?
- NovelAI's alpha-channel data. NovelAI's own repository says prompt information is stored in the alpha channel. That's pixel data, which AILabelFix copies untouched, and our checker doesn't decode it. Flattening transparency or saving as JPEG removes it.
- Any invisible watermark in the pixels, if your pipeline adds one.
- What the image looks like to a classifier.
Note: Realistic AI-generated images may need disclosure under platform rules or laws. AILabelFix is for privacy on files you own and for mislabeled real photos, not for passing off AI images as real.
To see how this compares with signed labels, read C2PA vs IPTC vs XMP vs EXIF.
Questions
How do I stop AUTOMATIC1111 from saving prompts in images?
In Settings, turn off “Write infotext to metadata of the generated image”. Existing files keep their parameters chunk, so clean those separately.
How do I stop ComfyUI from embedding the workflow?
Start ComfyUI with the --disable-metadata flag, which its help text describes as “Disable saving prompt metadata in files.” You lose drag-and-drop workflow recovery for those images.
Do JPEG and WebP files from A1111 carry the prompt too?
Yes. A1111's code writes the same infotext into the EXIF UserComment field for JPEG and WebP. AILabelFix rebuilds EXIF from a whitelist, so that field is dropped.
Can AILabelFix remove NovelAI's hidden alpha-channel data?
No. NovelAI stores prompt data in the alpha channel's pixels, and AILabelFix never alters pixels. Flattening the transparency or saving as JPEG removes it.
