Skip to content
Back to skills

Remove Ai Image Metadata

ASecurity

Inspect, remove, and verify embedded AI-generator or provenance metadata in image files without changing encoded picture data when the format permits. Use for any image-metadata cleanup request involving GPT Image, OpenAI, DALL-E, C2PA, Content Credentials, generative-AI labels, EXIF/XMP generator fields, or similar provenance in individual images or folders, including PNG, JPEG/JPG, WebP, GIF, TIFF, HEIC/HEIF, AVIF, SVG, and other image formats.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 15, 2026
ai-agentspythonshell

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 20, 2026

npx -y skills add jqaisystems/jqai-ai-skills --skill remove-ai-image-metadata --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Remove Ai Image Metadata?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Remove Ai Image Metadata
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jqaisystems-remove-ai-image-metadata/badge)](https://www.skillsdirectory.com/skills/jqaisystems-remove-ai-image-metadata)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: remove-ai-image-metadata
description: Inspect, remove, and verify embedded AI-generator or provenance metadata in image files without changing encoded picture data when the format permits. Use for any image-metadata cleanup request involving GPT Image, OpenAI, DALL-E, C2PA, Content Credentials, generative-AI labels, EXIF/XMP generator fields, or similar provenance in individual images or folders, including PNG, JPEG/JPG, WebP, GIF, TIFF, HEIC/HEIF, AVIF, SVG, and other image formats.
---

# Remove AI Image Metadata

Remove explicit embedded AI provenance or generator metadata using a format-aware workflow. Preserve encoded image content and rendering data whenever possible.

## Workflow

1. Resolve the exact files or folder in scope and identify each real file format from its contents.
2. Inspect before writing. For PNG, JPEG/JPG, WebP, and GIF, use the bundled cleaner without a write option:

   ```powershell
   python "<skill-folder>\scripts\clean_image_metadata.py" "<file-or-folder>" --recursive
   ```

3. Review every proposed removal. Default mode removes supported C2PA/Content Credentials blocks and metadata fields that contain known AI-generator markers. JPEG JUMBF requires a metadata-aware editor because a segment can contain unrelated or split records.
   Standard JPEG, WebP, and PNG iTXt XMP uses field-level edits, preserving unrelated sibling attributes and records. Photoshop support is limited to parsed Unicode text fields in descriptor-free version 6 slices; matching strings become same-length spaces. Unsupported matched structures and extended XMP stop for a metadata-aware editor. See [selective handling](references/selective-handling.md).
4. Choose a write mode:

   - Prefer verified copies when replacement was not explicitly requested:

     ```powershell
     python "<skill-folder>\scripts\clean_image_metadata.py" "<file-or-folder>" --recursive --output-dir "<clean-folder>"
     ```

   - Use `--in-place` only when the user wants the originals changed. Add `--backup-dir "<folder-outside-the-publish-folder>"` when a backup is useful.
   - Add `--all-metadata` only when the user asks to remove all removable non-rendering metadata. Preserve color profiles and functional animation data.

5. Confirm every changed file reports `PASS`. The cleaner reparses the written container and confirms that encoded PNG, JPEG, WebP, or GIF image payloads are unchanged.
6. Compare the preserved pre-clean file and cleaned output with the read-only verifier:

       python scripts/verify_image_cleanup.py before.png after.png --json

   Read [verification scope and limits](references/verification.md). Full verification requires every check to pass, including Pillow-based decoding. Missing dependencies or unsupported structures remain unverified. Inspect the rendered output as well. The cleaner's PASS only establishes its existing container/payload checks.
7. Report the number of files processed, exact output path, formats handled, and metadata removed.

## Format Routing

- Use the bundled script for byte-preserving PNG, JPEG/JPG, WebP, and GIF cleanup.
- For TIFF, HEIC/HEIF, AVIF, SVG, PSD, or another format, inspect available format-aware tools such as ExifTool or `c2patool`. Work on copies unless in-place replacement was requested. Verify the result with the same tool plus a decoder.
- If no safe handler is available, stop and report the unsupported format. Do not generically re-save or convert the image merely to strip metadata; that may alter pixels, animation, orientation, color, or compression.

## Operational Rules

- Process only images you own or are authorized to modify. Do not remove provenance metadata to misrepresent an image's origin or bypass a platform's disclosure requirements.
- Never claim a cleaned image is undetectable or guaranteed not to be classified as AI-generated. State only which explicit metadata was removed. Pixel-based classifiers may still guess.
- Preserve encoded picture data, ICC profiles, gamma/chromaticity information, JPEG color-transform markers, animation control, and other rendering-related data.
- In default mode, preserve unrelated copyright, authorship, descriptions, and location metadata unless the user requests broader removal.
- Default JPEG mode refuses matched EXIF blocks that need selective tag editing, preserving orientation and co-located fields. Use a metadata-aware editor instead. Explicit all-metadata mode is broader and can remove EXIF orientation; check display orientation before choosing it.
- Keep backups outside the upload/publish folder so tagged originals are not selected accidentally.
- Stop on malformed containers, failed integrity validation, changed encoded-image hashes, or incomplete post-clean inspection.

## Common Invocations

Inspect supported images:

```powershell
python "<skill-folder>\scripts\clean_image_metadata.py" "C:\path\images" --recursive
```

Clean originals after explicit confirmation:

```powershell
python "<skill-folder>\scripts\clean_image_metadata.py" "C:\path\images" --recursive --in-place
```

Create clean copies:

```powershell
python "<skill-folder>\scripts\clean_image_metadata.py" "C:\path\images" --recursive --output-dir "C:\path\clean-images"
```

The bundled cleaner uses only the Python standard library.

Files in this skill

  • SKILL.md4.8 KB
  • agents/openai.yaml264 B
  • references/selective-handling.md1.5 KB
  • scripts/clean_image_metadata.py36.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.