remove-ai-image-metadata
Skill3 starsChanged 6 months agoMITView on GitHub
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.
In this repository47 other files it gives its agents.
- agents-md-writerSkill
- ai-image-run-pacingSkill
- automation-state-reconcilerSkill
- backup-readiness-auditorSkill
- brand-voice-linterSkill
- case-study-writerSkill
- client-delivery-auditorSkill
- client-intake-builderSkill
- client-workspace-scaffolderSkill
- code-deduplicatorSkill
- cold-outreach-writerSkill
- demo-animationSkill
- demo-animation-v2Skill
- discovery-briefSkill
- em-dash-removerSkill
- etsy-listing-optimizerSkill
- follow-up-radarSkill
- github-profile-proof-updaterSkill
- github-safe-publisherSkill
- idea-inboxSkill
- implement-client-feedbackSkill
- lead-scorerSkill
- llms-txt-generatorSkill
- local-app-public-demoSkill
- media-spec-checkerSkill
- obsidian-daily-noteSkill
- ops-status-reportSkill
- outreach-pipeline-designerSkill
- php-form-mailerSkill
- proposal-writerSkill
- release-announcement-writerSkill
- research-brief-curatorSkill
- research-to-articleSkill
- screen-recorderSkill
- session-handoffSkill
- skill-builderSkill
- skill-reviewerSkill
- social-campaign-proof-trackerSkill
- skill-nameSkill
- thumbnail-legibility-checkSkill
- thumbnail-set-designerSkill
- vault-janitorSkill
- verify-public-claimsSkill
- web-scraperSkill
- website-change-verifierSkill
- windows-reinstall-plannerSkill
- write-evidence-backed-profileSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Remove explicit embedded AI provenance or generator metadata using a format-aware workflow.
- Distinctive: line 23
Prefer verified copies when replacement was not explicitly requested:
- Very specific: line 29
Use --in-place only when the user wants the originals changed.
- Very specific: line 30
Add --all-metadata only when the user asks to remove all removable non-rendering metadata.
- Distinctive: line 38
Use the bundled script for byte-preserving PNG, JPEG/JPG, WebP, and GIF cleanup.
- Distinctive: line 40
If no safe handler is available, stop and report the unsupported format.
- Distinctive: line 45
Never claim a cleaned image is undetectable or guaranteed not to be classified as AI-generated.
- Distinctive: line 48
Default JPEG mode refuses matched EXIF blocks that need selective tag editing, preserving orientation and co-located fields.
- Distinctive: line 49
Keep backups outside the upload/publish folder so tagged originals are not selected accidentally.
- Distinctive: line 50
Stop on malformed containers, failed integrity validation, changed encoded-image hashes, or incomplete post-clean inspection.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Resolve the exact files or folder in scope and identify each real file format from its contents.
Inspect before writing. For PNG, JPEG/JPG, WebP, and GIF, use the bundled cleaner without a write option:
python "<skill-folder>\scripts\clean_image_metadata.py" "<file-or-folder>" --recursive- 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.
Choose a write mode:
Prefer verified copies when replacement was not explicitly requested:
python "<skill-folder>\scripts\clean_image_metadata.py" "<file-or-folder>" --recursive --output-dir "<clean-folder>"- Use
--in-placeonly when the user wants the originals changed. Add--backup-dir "<folder-outside-the-publish-folder>"when a backup is useful. - Add
--all-metadataonly when the user asks to remove all removable non-rendering metadata. Preserve color profiles and functional animation data.
- 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. - Inspect the cleaned output again when extra verification is appropriate.
- 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:
python "<skill-folder>\scripts\clean_image_metadata.py" "C:\path\images" --recursiveClean originals after explicit confirmation:
python "<skill-folder>\scripts\clean_image_metadata.py" "C:\path\images" --recursive --in-placeCreate clean copies:
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

