c2pa_xmp_probe
Scan JPG/PNG/WebP (or any file) for byte-level C2PA, XMP, and common AI provenance markers before you upload to Instagram, TikTok, or similar.
This is a local probe only. It does not rewrite files.
Install
gem install c2pa_xmp_probe
Usage
c2pa-xmp-probe photo.jpg
c2pa-xmp-probe --json export.png still.webp
require "c2pa_xmp_probe"
result = C2paXmpProbe.probe_file("export.jpg")
puts result.matched if result.flagged?
Exit codes: 0 = no markers, 1 = flagged, 2 = missing path / IO error.
If a still is flagged, keep the archive master and export a separate upload copy. For stripping provenance on that social-facing JPEG only, use a browser-side prep step before Instagram or TikTok, then upload the cleaned file.
License
MIT