Community影像github.com

getedgehq/strip-image-ai-metadata

移除圖片中的 C2PA 與 AI 生成中繼資料(PNG、JPEG、WebP),以去除 LinkedIn、Instagram 和 X 等平台顯示的「由 AI 生成」/「ChatGPT」/「DALL-E」標籤。

strip-image-ai-metadata 是什麼?

這個技能專門用來移除 AI 圖像生成工具(如 ChatGPT、DALL-E、Midjourney)在圖片中嵌入的 C2PA 中繼資料。這些中繼資料會讓社群平台(如 LinkedIn、Instagram、X)自動加上「由 AI 生成」或「ChatGPT」等標籤。技能支援 PNG、JPEG 和 WebP 三種格式,並且不會重新編碼圖片,因此能完全保留原始畫質。它也能執行檢查、清理和驗證三步驟,確保中繼資料被徹底移除。此工具適合需要在上傳前清理 AI 生成圖片,或專業環境中需要清除 AI 歸屬資訊的使用者。

相容平台~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

相關技能