Verifiable methodology
What MetaClean checks and how we know
This page documents the engine's current scope. It does not describe future features: every claim is tied to structures parsed by the code and to checks that must pass before a download is enabled.
Reviewed November 2, 2026
Current capability matrix
| Check | JPEG | PNG | Result evidence |
|---|---|---|---|
| Structure and integrity | Validates SOI, segment lengths, SOS and image data. | Validates signature, chunk sequence, CRC and IEND with no trailing data. | A plausible signature with truncated structure or an invalid CRC is rejected. |
| Dimensions | Reads dimensions from a supported SOF segment. | Reads width, height and color type from IHDR. | The report requires dimensions to match before and after. |
| EXIF and related data | Identifies EXIF APP1 and complements parsing with exifr. | Identifies eXIf; some subcategories may remain uninspected. | GPS, dates and camera details are reported separately instead of treating every EXIF container as equivalent. |
| XMP, IPTC and text | Detects XMP in APP1, Photoshop IPTC in APP13 and COM comments. | Detects XMP and text in tEXt, zTXt and iTXt; dedicated IPTC is marked unsupported. | Cleaning removes classified blocks, never text-like bytes found inside compressed pixels. |
| Color profile | Recognizes ICC_PROFILE APP2 segments. | Recognizes iCCP. | Preserved by default because removing it may change color appearance. |
| Provenance indicators | Flags recognizable JUMBF or C2PA headers. | Flags recognizable c2pa or caBX chunks. | This is structural detection, not complete cryptographic validation. |
| Cleaning without recompression | Keeps the compressed stream from SOS onward and rebuilds earlier segments. | Keeps IDAT, transparency and essential chunks while removing selected complete chunks. | The report records recompressed=false and analyzes the generated file again. |
Verification process
1. Input validation
Signature, structure and browser decoding must agree. A .jpg or .png extension is not enough.
2. Initial analysis
The adapter records actual properties and states: detected, not detected, unsupported or uninspected.
3. Selective cleaning
The container is rebuilt while removing only requested and recognized categories.
4. Second analysis
The result is analyzed from scratch; the tool does not reuse a list of presumed removals.
5. Mandatory verification
Categories, dimensions, transparency and integrity are compared. A failure is never reported as success.
Limits we keep visible
- It does not cryptographically verify every C2PA credential.
- It does not detect invisible watermarks or statistical pixel fingerprints.
- It cannot control records retained outside the file by a social platform.
- WebP is not advertised as supported until equivalent cleaning and verification exist.
Reproducible tests
Tests cover invalid signatures, PNG CRC failures, truncated files, transparency preservation, ICC profiles, browser decoding and the absence of file uploads during processing.
Reference specifications
The implementation is checked against public PNG, XMP and IPTC documentation. Those sources describe the formats; the matrix above only describes what MetaClean implements and tests today.
See the change history