Strip Stable Diffusion & ComfyUI Prompts from PNG
Inspect and scrub embedded A1111 parameters, LoRA weights, seeds, and full ComfyUI node workflow JSON graphs from PNG files without losing lossless quality.
Drop Stable Diffusion or ComfyUI PNGs (up to 10 files)
Detects PNG tEXt/iTXt parameters & workflow JSON Β· Exports clean lossless PNGs locally
2. Why This Matters (Executive Summary)
Stable Diffusion interfaces (Automatic1111, Forge, InvokeAI) and ComfyUI automatically inject your entire positive/negative prompt, checkpoint hash, LoRA weights, seed, and complete node graph JSON into uncompressed PNG tEXt and iTXt chunks. Anyone who downloads your raw PNG can drag it into their own UI to clone your exact workflow. PrivaLens detects these hidden PNG chunks in your browser and repaints the pixels onto a fresh lossless PNG canvas, permanently erasing all generation parameters.
3. What Hidden Metadata Is Exposed in This Scenario?
Below are the exact binary chunks, EXIF IFD tags, and cryptographic provenance containers that PrivaLens inspects and strips for SD & ComfyUI Prompt Cleaner workflows:
| Metadata Field / Tag | Container Layer | Risk | What It Leaks & Sample Payload |
|---|---|---|---|
parameters | PNG tEXt / iTXt | Critical | Full positive & negative prompts, sampler, CFG scale, seed, model hash, and LoRA multipliers in Automatic1111 & SD WebUI Forge. masterpiece, studio lighting <lora:film_grain_v2:0.75>\nNegative prompt: blurry\nSteps: 30, Sampler: DPM++ 2M Karras, CFG scale: 7.0, Seed: 84920144, Model hash: 6ce0161689 |
workflow | PNG tEXt | Critical | The complete ComfyUI visual node graph (every custom node, wire connection, IPAdapter setup, and ControlNet weight). {"last_node_id":42,"last_link_id":68,"nodes":[{"id":4,"type":"CheckpointLoaderSimple","widgets_values":["flux1-dev.safetensors"]}]} |
prompt | PNG tEXt | Critical | Serialized ComfyUI API execution payload containing exact node inputs, text encodings, and file paths on your local disk. {"3":{"inputs":{"seed":9918231,"steps":25,"cfg":3.5,"sampler_name":"euler","scheduler":"simple"}}} |
invokeai_metadata / Dream | PNG tEXt / iTXt | High | InvokeAI, NovelAI, and Fooocus generation manifests including control layers and inpainting masks. {"generation_mode":"txt2img","positive_prompt":"cyberpunk alley","model":{"model_name":"juggernautXL"}} |
UserComment | JPEG / WebP EXIF | High | Fallback EXIF field where WebUIs store generation parameters when saving directly to JPEG or WebP. UNICODE\0\0Steps: 28, Sampler: Euler a, Schedule type: Automatic, CFG scale: 6.5 |
4. How ComfyUI & A1111 Hide Your Workflow Inside PNG Binary Chunks
Unlike standard camera JPEGs that store metadata in an EXIF APP1 header, PNG files are structured as a sequence of binary chunks following an 8-byte magic signature (89 50 4E 47 0D 0A 1A 0A). While image viewers only render the IDAT (image pixel data) and IHDR (header) chunks, PNG specifications allow arbitrary uncompressed text inside tEXt and iTXt chunks.
By default, ComfyUI writes two massive tEXt chunksβkeyed as "prompt" and "workflow"βright before the IDAT pixel data. If you send that PNG to a client or post it on a forum that preserves original file attachments, anyone can drag and drop your PNG directly into their ComfyUI browser tab and reconstruct your proprietary multi-node pipeline in one second.
Traditional EXIF scrubbers often ignore PNG tEXt chunks because they only look for standard camera tags (like Aperture or ISO). PrivaLens parses the raw PNG binary stream to show you the exact embedded parameters and workflow JSON, then strips every non-essential chunk by re-encoding the raw RGBA pixel buffer into a brand-new lossless PNG.
[PNG Signature] 89 50 4E 47 0D 0A 1A 0A
βββ [IHDR Chunk] 1024 x 1024, 8-bit RGBA
βββ [tEXt Chunk] Keyword: "parameters" (A1111 / Forge)
β βββ Value: "cinematic portrait, <lora:skin_detailer:0.8>\nSteps: 30, Seed: 4189203..."
βββ [tEXt Chunk] Keyword: "prompt" (ComfyUI Execution Graph)
β βββ Value: {"6":{"inputs":{"text":"proprietary prompt..."},"class_type":"CLIPTextEncode"}}
βββ [tEXt Chunk] Keyword: "workflow" (ComfyUI Visual Canvas)
β βββ Value: {"nodes":[{"id":1,"type":"KSampler","widgets_values":[4189203,"fixed",30,7.0]}]}
βββ [IDAT Chunks] Compressed RGBA Pixel Stream (Kept by PrivaLens)
βββ [IEND Chunk] End of File 5. Why Standard OS Properties & Platform Strippers Fail
Windows "Remove Properties" Ignores PNG tEXt Chunks
Right-clicking a PNG in Windows File Explorer and clicking "Remove Properties and Personal Information" only clears standard Windows Shell properties. It leaves ComfyUI "workflow" and A1111 "parameters" tEXt chunks 100% intact.
Legacy Camera EXIF Removers Skip Non-EXIF Containers
Many older EXIF tools only strip the eXIf chunk or JPEG APP1 segment. Because Stable Diffusion stores prompts in PNG tEXt/iTXt chunks rather than EXIF tags, those tools report the image as "clean" while your entire prompt remains embedded.
Converting to JPG Destroys Lossless Quality & Alpha Transparency
Some tools force-convert your PNG into a lossy JPEG to strip metadata, introducing compression artifacts and ruining transparent backgrounds. PrivaLens exports a clean, lossless PNG when you upload a PNG.
6. How to Strip Stable Diffusion & ComfyUI Prompts from PNG (4-Step Local Protocol)
Drop Your SD or ComfyUI PNGs
Drag up to 10 PNG, JPEG, or WebP images generated by Automatic1111, Forge, ComfyUI, or InvokeAI into the PrivaLens drop zone.
Inspect Exposed Prompts & Workflows
Click any image to view the Detected Metadata panel. PrivaLens highlights hidden "parameters", "prompt", and "workflow" JSON chunks in red.
Strip Chunks via Lossless Canvas Repaint
Click the Download button on a single image or batch-download all images as a ZIP. PrivaLens redraws only the raw pixels into a fresh lossless PNG container.
Verify Clean Output
Drop your newly downloaded clean_image.png back into PrivaLens (or ComfyUI) to confirm zero prompts or workflow nodes remain.
7. Frequently Asked Questions
Does stripping Stable Diffusion metadata reduce PNG image quality?
No. When you upload a PNG file to PrivaLens, it decodes the exact uncompressed pixel matrix and re-encodes it as a lossless PNG (image/png). Every pixel and alpha transparency value remains identical, while the tEXt, iTXt, and zTXt metadata chunks are completely discarded.
Can someone still load my PNG into ComfyUI after cleaning it with PrivaLens?
No. ComfyUI reconstructs node graphs by reading the "workflow" and "prompt" tEXt chunks embedded inside the PNG file. Once PrivaLens strips those chunks, dragging the image into ComfyUI will simply display a "No workflow found in image" message.
Are my proprietary AI prompts or images uploaded to any server?
Never. PrivaLens runs 100% locally inside your web browser using the HTML5 Canvas API and JavaScript ArrayBuffer inspection. Your images, LoRA recipes, and prompts never leave your computer.
Does this also work for Forge, Fooocus, NovelAI, and InvokeAI images?
Yes. All major Stable Diffusion and Flux interfaces store generation data in PNG text chunks (tEXt, iTXt, zTXt) or EXIF UserComment fields. PrivaLens detects and removes all of them.