← 返回
未分类 中文

Image Metadata Cleaner

Clean privacy-sensitive metadata (C2PA, EXIF, XMP, IPTC, GPS) from user-owned images by writing sanitized copies. For privacy hygiene and file preparation.
清除用户图片中的隐私敏感元数据(C2PA、EXIF、XMP、IPTC、GPS),生成清洗后的副本。用于隐私保护和文件准备。
aiwork4me aiwork4me 来源
未分类 clawhub v1.0.2 1 版本 99672.1 Key: 无需
★ 0
Stars
📥 304
下载
💾 0
安装
1
版本
#latest

概述

Image Metadata Cleaner

Clean privacy-sensitive metadata from user-owned images by writing sanitized copies. Designed for legitimate privacy hygiene, file preparation, and reproducible publishing workflows.

Use only for: images you own or are authorized to process, for privacy protection, file-size optimization, and clean publishing.

What it does

  • Re-encodes image pixels into a fresh output file — all metadata discarded
  • Writes copies instead of modifying originals in place
  • Defaults folder output to metadata-cleaned/ subdirectory
  • Refuses output paths that resolve to the same file as the input
  • Reopens outputs and scans for residual metadata keys and provenance markers
  • Produces a human-readable summary and optional JSON manifest

Usage

Single file

User: clean metadata from this image: photo.png
User: remove EXIF data from IMG_2024.jpg

Folder batch

User: clean metadata from all images in "C:\Users\me\Downloads"
User: remove privacy data from /path/to/folder

Steps

  1. Confirm the task is for privacy hygiene on images the user owns or is authorized to process.
  1. Preview with dry-run (optional):

```bash

uv run --with "pillow>=10.0" scripts/strip.py "" --dry-run

```

  1. Run the cleanup:

```bash

uv run --with "pillow>=10.0" scripts/strip.py "" --manifest

```

Options:

  • -o — Output file path (single file only)
  • --output-dir — Output directory (batch mode)
  • -f preserve|jpg|png — Output format (default: preserve — JPEG stays JPEG, others become PNG)
  • -q <1-100> — JPEG quality (default: 95)
  • --recursive — Process subdirectories
  • --overwrite — Overwrite existing output (only after user confirmation)
  • --dry-run — Preview without writing files
  • --manifest [path] — Write JSON manifest

If uv is not available:

```bash

pip install "pillow>=10.0" && python scripts/strip.py "" --manifest

```

  1. Report results:
    • Files processed, failed, or dry-run previewed
    • Output filenames and location
    • File size before → after
    • Dimensions preserved
    • Verification scan results (any residual metadata keys or provenance markers)

Note: this removes file-level metadata only. Pixel-level watermarks and external platform records are outside the scope.

Error Handling

ErrorCauseFix
-------------------
"No supported image files found"Folder has no matching extensionsCheck input path and file types
"Output already exists"Explicit output path existsUse --overwrite after user confirmation
"Refusing to overwrite input file"Output path = input pathChoose a different output path
"Unsupported image extension"File extension not in supported listUse PNG, JPEG, WebP, BMP, or TIFF
"cannot identify image file"Corrupted or non-image fileSkip and continue with other files
Pillow ImportErrorMissing dependencyRun pip install "pillow>=10.0"

What gets removed

Metadata TypeNotes
------
EXIFCamera, GPS, device tags. Orientation applied before saving.
XMPAdobe and application metadata
IPTC/PhotoshopPress and photo metadata
ICC ProfileColor profile (not copied to output)
C2PA/JUMBFProvenance containers removed by re-encoding

Output behavior

  • Format: Default preserve — JPEG inputs stay JPEG, others written as PNG
  • Naming: {name}-clean.{ext} (e.g., photo-clean.png)
  • Folder mode: Outputs go to metadata-cleaned/ subdirectory
  • Single file: Sibling copy next to the original
  • Never overwrites input — script refuses if output resolves to input

Supported inputs

.png, .jpg, .jpeg, .webp, .bmp, .tiff, .tif

Known limitations

  • Does not remove pixel-level watermarks, fingerprints, or invisible signals
  • Does not affect external platform records or server-side provenance
  • Removing ICC profiles may affect color management in some workflows
  • JPEG output is lossy; PNG preferred for pixel fidelity
  • Transparent images written as JPEG are composited onto white background

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-08 01:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Paddleocr Doc Parsing Radeon

aiwork4me
免费文档解析,AMD Radeon Cloud运行PaddleOCR‑VL 1.5,从PDF和文档图片提取结构化Markdown/JSON——表格单元格……
★ 1 📥 450

Ernie Image Gen

aiwork4me
百度文生图(ERNIE‑Image)文生图生成。通过百度 AI Studio 的 ERNIE‑Image 与 ERNIE‑Image‑Turbo 模型快速生成 AI 图片。
★ 1 📥 380

Ernie Image Radeon

aiwork4me
免费 ERNIE-Image 文生图生成,AMD Radeon Cloud 驱动,无需 API 密钥,支持 ERNIE-Image 与 ERNIE-Image‑Turbo 模型生成 AI图像。
★ 0 📥 275