360 Secure SkillHub
360 安全技能中心

Axiom Image Metadata Stripper

该 Skill 使用 Python 标准库脚本去除 JPEG 的 EXIF、ICC、XMP、IPTC,PNG 的文本块与 eXIf 块以及 GIF 注释扩展,便于发布照片前清除 GPS、相机信息等隐私数据;支持单文件或目录批处理、字节进出接口,并提供元数据检测模式,不重新编码图像像素。

kofna3369
kofna3369
热度 24.20
最近更新 2026-06-15 12:50:24
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 文件转换 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add axiom-image-metadata-stripper
Metadata
name
axiom-image-metadata-stripper
description
Image metadata stripper — remove EXIF, GPS, camera info, and other metadata from JPEG/PNG/GIF images. Use when you publish photos and want to remove PII. Pure stdlib (no Pillow required), no LLM.
version
0.1.2
license
Apache-2.0

axiom-image-metadata-stripper

Version: 0.1.2 Axioma Tools

Strips metadata from images while preserving the actual image data.

What this skill does

  • JPEG: strips EXIF, ICC profile, XMP, IPTC
  • PNG: strips tEXt, zTXt, iTXt, eXIf chunks
  • GIF: strips comment extensions
  • Preserves image pixels (no re-encoding)
  • Bytes-in, bytes-out

When to use this skill

  • ✅ Strip GPS coordinates before sharing photos
  • ✅ Remove camera serial numbers
  • ✅ Sanitize before publishing to web
  • ❌ Re-encode/resize images (use Pillow)
  • ❌ View EXIF (use exiftool)

Usage

python3 axiom_image_metadata_stripper.py photo.jpg -o photo-clean.jpg
python3 axiom_image_metadata_stripper.py ./photos/ --output-dir ./clean/
from axiom_image_metadata_stripper import strip_metadata
clean_bytes = strip_metadata(open('photo.jpg', 'rb').read())

Validation

Check Status
Unit tests 20+ cases
Performance <100ms
Security Pure stdlib, no injection
Determinism Byte-to-byte stable
License Apache-2.0

Last updated: 2026-06-14