360 Secure SkillHub
360 安全技能中心

Axiom Image Metadata Stripper

核心功能:移除JPEG/PNG/GIF的EXIF、GPS、相机信息等各类元数据,保留图像像素不重编码,纯标准库实现无额外依赖。典型场景:分享照片前清除定位信息,发布网页前 sanitize 图片,移除相机序列号等隐私数据。支持单文件、批量处理,提供命令行和Python调用两种方式,输入输出为字节流,高效稳定。

kofna3369
kofna3369
热度 24.18
最近更新 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