Community图像github.com

getedgehq/strip-image-ai-metadata

从图片(PNG、JPEG、WebP)中移除C2PA和AI生成元数据,消除“由AI生成”、“ChatGPT”、“DALL-E”等标签显示。

strip-image-ai-metadata 是什么?

该技能用于去除 AI 图像生成工具(如 ChatGPT、DALL-E、Midjourney 等)嵌入图片中的 C2PA 元数据。平台如 LinkedIn、Instagram 和 X 会读取这些元数据并显示“由 AI 生成”等标签。本工具无需重新编码即可清理元数据,从而保留原始图片质量。支持 PNG、JPEG 和 WebP 格式,针对不同格式采用相应的元数据结构清除策略(如 PNG 的 caBX 块、JPEG 的 APP11 段、WebP 的 C2PA 块)。默认生成带有中性相机风格文件名(IMG_YYYYMMDD_HHMMSS)的副本,并提供覆盖原图或指定输出路径的选项。此外,还提供检查图片是否包含 C2PA 元数据的快速方法,以及自动验证清理结果。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/getedgehq/skills/tree/main/strip-image-ai-metadata

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

去除图片 AI 元数据

像 LinkedIn 这样的平台会读取 AI 图像生成器(ChatGPT、DALL-E、Midjourney 等)嵌入的 C2PA 元数据,并显示归属标签。该技能可去除这些元数据且无需重新编码,从而保留图像质量。

支持的格式

  • PNG:移除 caBX 块以及与 AI 相关的 tEXt/iTXt/zTXt 块
  • JPEG:移除 APP11 C2PA 段以及与 AI 相关的 APP1(XMP/EXIF)段
  • WebP:移除 C2PA 块及与 C2PA 相关的有效载荷

快速使用

对一张或多张图片运行捆绑脚本:

python3 scripts/strip_c2pa.py image.png      # 去除元数据并重命名为 IMG_YYYYMMDD_HHMMSS.png
python3 scripts/strip_c2pa.py image.jpg -o cleaned.jpg
python3 scripts/strip_c2pa.py *.png

默认情况下,脚本会在同一目录下写入一个具有中性相机风格文件名(IMG_YYYYMMDD_HHMMSS.<ext>)的清理副本,并保留原文件不变。使用 -i/--in-place 覆盖原文件,或使用 -o 指定显式输出路径。

工作流程

  1. 检查(可选):如果用户不确定图片是否包含 C2PA 元数据,请运行:

    strings image.png | grep -i c2pa
    

    或使用 Python 读取 PNG 块以查找 caBX。

  2. 去除:运行 scripts/strip_c2pa.py <path>。脚本默认写入一个中性名称的副本,并报告哪些内容已被移除。

  3. 验证:脚本会自动扫描输出结果中是否残留 C2PA/AI 关键词,并发出警告。

此工具不会做什么

  • 不会移除嵌入像素中的可见水印。
  • 不会剥离标准 EXIF 元数据,除非其中包含 AI 归属关键词。
  • 不会重新编码,因此文件大小和图像质量保持不变(移除的元数据除外)。

何时需要重新编码

如果在清理后平台仍显示 AI 标签,则归属信息可能已嵌入到像素中或存储在非 C2PA 格式中。在这种情况下,请使用 ImageMagick 进行解码和重新编码:

convert input.png -strip output.png

这对 PNG 是无损的,但对于 JPEG 可能会造成轻微的质量损失。

Individual skills in this repo

This repo contains 18 individual skills — each has its own dedicated page.

getedgehq/agent-evals

Build evals for an AI agent that already does real work. Use when someone asks "how do I know my agent is right", wants to test an agent before trusting it, compare models on cost versus quality, or turn production failures into tests. Walks from first tasks and yes/no verifiers, to isolated environments, to a trace-driven improvement loop.

getedgehq/cli-ux-review

Audit a command-line tool for user-friendliness — clear situation / next-step / options in every output, colour-highlighted runnable commands, no raw jargon, no silent hangs. Invoke for "CLI UX audit", "review my CLI", "is this CLI intuitive", or before any CLI release.

getedgehq/generate-image

Generate images with OpenAI GPT Image 2 via the Codex CLI, billed through the user's ChatGPT Plus subscription (no OpenAI API key, no per-image API cost). Use when the user asks to create, generate, or make an image, picture, illustration, icon, hero graphic, or concept art from a text prompt.

getedgehq/harness-first

Diagnose and fix an unreliable, expensive, or unsafe LLM agent by auditing its harness (golden set, judge, cost caps, data layer, action approvals, tracing) before blaming or swapping the model. Use when someone says an agent is "burning tokens", "hallucinating", "brittle", gives inconsistent answers, asks whether to switch to a cheaper/better model, or wants to ship an agent or prompt change to customers.

getedgehq/http-error-triage

Run before concluding anything from an HTTP error on a third-party API. Separates a real credential/entitlement problem from a CDN or WAF block, a wrong endpoint, or a client-signature ban. Use whenever an API returns 401/403/402/429 and you are about to say "the key is dead", "credits are exhausted", "the plan lacks access", or "we are rate limited".

getedgehq/linkedin-media-prep

Convert, crop, resize, and compress images and videos for optimal LinkedIn upload quality and file size. Use when the user wants to prepare a photo, image, or video for LinkedIn (profile picture, cover photo, post image, article featured image, post video, or video ad), optimize file size for LinkedIn, crop and resize for LinkedIn dimensions, convert HEIC/RAW/PNG/MOV to LinkedIn-ready JPEG or MP4, or mentions LinkedIn media requirements, specs, or limits.

getedgehq/monid

>-

getedgehq/opendraft

An 18-agent pipeline that turns one topic line into a drafted

getedgehq/people-search

Find and rank professional people for recruiting, partnerships, sales, or research from user-provided data, public web sources, an authenticated search session, or a connected provider. Use for people discovery, LinkedIn or Sales Navigator search design, profile-list ranking, or provider filter translation.

getedgehq/rocketlist

Turn a CV into a shortlist of live startup roles from Rocketlist's public job board, including adjacent job titles the person would never have searched for, each with its published salary, the evidence for the fit, and a direct apply link. Use for "find roles I would be a strong fit for", career pivots, remote or VC-backed job hunts, and salary-visible role discovery.

getedgehq/security-audit-checklist

Run a comprehensive security audit across application code, cloud infrastructure, containers, CI/CD pipelines, and infrastructure-as-code. Covers privacy compliance, OWASP basics, secret leakage, API security, IAM misconfigurations, storage exposure, Kubernetes hardening, and network security. Use when the user asks to audit, review, or harden app or cloud security, check for secrets, scan for XSS/SQLi, verify security headers, review Terraform/CloudFormation, audit AWS/GCP/Azure configs, or perform any security-focused review.

getedgehq/shadcn-first

>-

getedgehq/skills

Develop or review a branded long-form YouTube channel using Simon Kaiser's public creator-led approach: audience fit, recurring formats, natural brand integration, Time with Brand, and an organic, paid, and Shorts strategy. Use for channel strategy, format briefs, and pilots.

getedgehq/skills

Build a YouTube strategy, evidence-backed idea slate, and title plus thumbnail package using Paddy Galloway's public method. Use when planning a channel, choosing concepts, or preparing a video before filming.

getedgehq/skills

Build or review a buyer-centered strategic narrative using Andy Raskin's public method. Use for sales or investor deck stories, homepage positioning, keynotes, launch narratives, and why-now messaging.

getedgehq/skills

Turn a product URL, launch brief, or approved script into a production-ready launch video. Use for product reveals, feature announcements, SaaS launches, and narrated product films; not for generic explainers or editing existing footage.

getedgehq/top-down-comms

>-

getedgehq/workplan

Create, update, or close work plans for multi-step tasks. Use when starting refactors, bug lists, feature work, migrations, or any task with 2+ steps. Also use after auto-compaction to re-orient. Triggers: "workplan", "work plan", "create a plan", "what's the plan", "where was I", or when Claude detects

相关技能