Skip to content
MetaClean

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

CheckJPEGPNGResult evidence
Structure and integrityValidates 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.
DimensionsReads 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 dataIdentifies 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 textDetects 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 profileRecognizes ICC_PROFILE APP2 segments.Recognizes iCCP.Preserved by default because removing it may change color appearance.
Provenance indicatorsFlags recognizable JUMBF or C2PA headers.Flags recognizable c2pa or caBX chunks.This is structural detection, not complete cryptographic validation.
Cleaning without recompressionKeeps 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. 1. Input validation

    Signature, structure and browser decoding must agree. A .jpg or .png extension is not enough.

  2. 2. Initial analysis

    The adapter records actual properties and states: detected, not detected, unsupported or uninspected.

  3. 3. Selective cleaning

    The container is rebuilt while removing only requested and recognized categories.

  4. 4. Second analysis

    The result is analyzed from scratch; the tool does not reuse a list of presumed removals.

  5. 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