strip-image-ai-metadatalisted
Install: claude install-skill getedgehq/skills
# Strip Image AI Metadata
Platforms like LinkedIn read C2PA metadata embedded by AI image generators (ChatGPT, DALL-E, Midjourney, etc.) and display an attribution label. This skill removes that metadata without re-encoding, so image quality is preserved.
## Supported formats
- **PNG**: removes `caBX` chunks, generator text chunks (`parameters`, `prompt`, `workflow` and friends) and AI-related `tEXt`/`iTXt`/`zTXt` chunks, and erases AI attribution tags inside `eXIf`
- **JPEG**: removes APP11 C2PA segments and AI-related APP1 (XMP) segments, erases AI attribution tags inside structured EXIF, and cleans the trailer after the `FFD9` end-of-image marker
- **WebP**: removes `C2PA` chunks and AI-related `XMP ` chunks, and erases AI attribution tags inside `EXIF`
- **Sidecars**: `.xmp` and `.json` files next to the image, or passed directly
## Quick use
Run the bundled script on one or more images:
```bash
python3 scripts/strip_c2pa.py image.png # strips metadata + renames to IMG_YYYYMMDD_HHMMSS.png
python3 scripts/strip_c2pa.py image.jpg -o cleaned.jpg
python3 scripts/strip_c2pa.py *.png
python3 scripts/strip_c2pa.py photo.xmp # a sidecar on its own
```
By default the script writes a cleaned copy with a neutral camera-style filename (`IMG_YYYYMMDD_HHMMSS.<ext>`) in the same directory and leaves the original untouched. Use `-i`/`--in-place` to overwrite the original, or `-o` for an explicit output path.
**Check the exit code.** `0` means the output is clean. `1` me