People strip metadata from AI images, post the file, and the platform still shows an AI label. That is usually not a bug in the stripping tool. It is a misunderstanding of what the file contained in the first place.

I measured four original PNG exports from OpenAI's image model at the container level — chunk by chunk, byte by byte — stripped them, and compared pixel payloads before and after. Everything below is reproducible with the script included at the end.

Method

  • Four PNGs generated with OpenAI's image model. The embedded manifest identifies the generator in each file.
  • Parsed with a zero-dependency Node script that walks PNG chunks, JPEG markers and WebP RIFF directly. No ExifTool, no Pillow, no ImageMagick.
  • For each file: enumerate every ancillary chunk, extract text surfaces, strip non-essential chunks, then compare the pixel payload bytes before and after. For PNG that means the concatenated IDAT data; identical IDAT bytes mean identical decoded pixels.
  • Strip keeps IHDR, PLTE, IDAT, IEND, tRNS, gAMA, sRGB, iCCP, cHRM, sBIT, bKGD. Everything else is dropped.

Results

file dimensions bytes C2PA chunk (caBX) share of file pixels after strip
gptimage-1.png 1024×1024 987,509 23,548 2.4% identical
gptimage-2.png 1536×1024 1,922,273 29,099 1.5% identical
gptimage-3.png 1024×1536 1,385,715 29,095 2.1% identical
gptimage-4.png 1672×941 2,044,857 21,893 1.1% identical

In PNG, C2PA does not live in the usual text fields. It sits in a caBX chunk — 21.9 KB to 29.1 KB here, roughly 1 to 2.4 percent of the file.

What the manifests say

file claim generator software agent actions
1 OpenAI Media Service API gpt-image 2.0 created, converted
2 OpenAI Media Service API gpt-image 2.0 created, converted, watermarked.unbound
3 OpenAI Media Service API gpt-image 2.0 created, converted, watermarked.unbound
4 OpenAI Media Service API ChatGPT / gpt-image created, converted, watermarked.unbound

All four declare digitalSourceType as trainedAlgorithmicMedia. The assertions differ: file 1 carries c2pa.signature and c2pa.ssl.com; files 2 and 3 add c2pa.certificate; file 4 carries neither c2pa.certificate nor c2pa.ssl.com.

That last row is the interesting one. Same claim generator string, but the software agent is ChatGPT / gpt-image instead of gpt-image 2.0, and the certificate assertions are gone. In other words, "it came from the OpenAI API" and "it came out of the ChatGPT product" are distinguishable at the file level — at least in this sample.

None of the four stores prompt text. I checked the entire caBX payload for the string prompt: no hits.

Two controls that change how you read "no metadata"

A file with no C2PA does not tell you how it was made. It may tell you where it was re-saved.

  • Re-saved JPEG: 0 bytes of metadata. Opening and exporting again — or forwarding through chat apps — wipes the provenance entirely.
  • Photo exported through a phone gallery pipeline: 13,435 bytes of Exif and XMP, but all vendor tags (the Software field reads Picasa), and zero C2PA. The export step did not preserve the original claim; it wrote its own metadata over it.

So when someone says "I removed the metadata and it still says AI", there are at least two separate things going on: the invisible watermark that metadata tools never touch, and the platform-side label that may have been applied when the image was uploaded.

What this does not prove

  • C2PA removal is a container edit. Pixel bytes are unchanged — I verified that — but this says nothing about invisible watermarks such as SynthID. I did not test watermark detection.
  • Only OpenAI exports were measured. Gemini, Firefly, Midjourney and ComfyUI were not tested. Files that had passed through share links or phone galleries were excluded from the generator comparison because those pipelines re-encode.
  • Sample size is 4. Treat the byte ranges as observed values, not population statistics.

Reproduce it

The script is in the gist below. Drop samples into a folder, prefix each filename with its platform, then:

node metadata-forensics.mjs --samples ./samples --out ./out 

It writes dataset.json, summary.md, stripped/ and raw/ (printable manifest text per metadata surface). The dataset includes every file measured, including both controls.

Source and full hashes: https://gist.github.com/kibovrwa/2bf8b0236acdcedf4d4f469bb7296e9d

Disclosure: I maintain removeaimeta.com, a browser-local tool that performs this stripping without uploading the file. The measurements above were produced independently of it; the tool is mentioned once, here.