Independent product studio · Swedenhello@karelialabs.com

Guide

How to remove the prompt and workflow from a Stable Diffusion or ComfyUI image

Short answerStable Diffusion front-ends and ComfyUI save the prompt, the seed, the model names and even the whole workflow inside the image. Turn the saving off in the tool for new images. For images you already made, the PureImage Offline Edition cuts the data out of the file on your own computer without touching the pixels.

Updated

What AI tools write into the file

  • Stable Diffusion web UIs (AUTOMATIC1111, Forge): a text block named parameters with the prompt, the negative prompt, steps, sampler, CFG scale, seed, size, and the model and LoRA names.
  • ComfyUI: the prompt and the complete workflow as JSON. Dragging the PNG into ComfyUI rebuilds the whole node graph, including the names of your models and LoRAs.
  • Hosted generators: some write the prompt or a job ID into a description field.
  • Adobe Firefly, Photoshop, ChatGPT and others: a signed C2PA manifest and the IPTC AI source type instead of a prompt.

To see what one of your images carries, drop it on Karelia Prompt. It is free and shows the prompt, the settings and the ComfyUI workflow in your browser, without uploading the file.

Why remove it

The prompt is your work. Anyone who gets the original PNG can read it, copy the settings and reproduce your style, and a ComfyUI workflow shows exactly how an image was built. Sites that host AI images read the same data to show the generation details. If you sell prompts, do client work, or simply do not want your settings passed around, share a copy without it.

Stop the tools saving it

  • AUTOMATIC1111 and Forge: the settings for saving images have an option that stops writing the generation parameters into PNG files.
  • ComfyUI: start it with the --disable-metadata option.
  • Images you already made keep their data until you clean them.

Remove it from images you already made

  1. Get the PureImage Offline Edition ($14.99 once) and save the file PureImage-Offline.html anywhere on your computer.
  2. Double-click it. It opens in your browser and works with the internet unplugged.
  3. Drop the images on the page, or pick a whole folder of renders.
  4. Download the clean copies. Several files come as one ZIP.

For a single image, Karelia Image does the same for free in your browser, with nothing uploaded.

It cuts the text blocks, XMP, EXIF, IPTC and C2PA data out of the file itself. The picture is not re-compressed, so the pixels stay as they were. The receipt lists what was found, and the cleaned file is read again to confirm that no hidden fields are left. To look without changing anything, see how to check an image's metadata.

Keep your original files if you want to reopen a workflow in ComfyUI yourself, and share the cleaned copies.

What this does not remove

  • Invisible watermarks that are part of the pixels, such as Google's SynthID.
  • Visible watermarks, signatures or logos.
  • A platform's own analysis of what the picture looks like.
  • Your duty to say that an image is AI-made where a platform or a law requires it.

FAQ

Can someone read my prompt from a PNG?

Yes, if the file still carries it. The PNG Info tab in Stable Diffusion web UIs, ComfyUI itself and any metadata viewer show it.

Does removing the metadata change the image?

No. Only the hidden text and metadata blocks are cut out. The pixels are not touched and the file is not re-compressed.

Will the image still load its workflow in ComfyUI?

No. The workflow is the data that is removed. Keep your original file if you want to reopen the workflow yourself, and share the cleaned copy.

Can I clean a whole folder of renders?

Yes. Pick the folder in the Offline Edition and download the clean copies together as one ZIP.

Does it work on JPG and WebP too?

Yes. Some tools save the same data in EXIF or XMP when they write JPG or WebP files, and that is removed as well.

More guides

More from Karelia Labs