Repository avatar
AI Tools
v0.2.0
active

whomade

io.github.ajinkya-cs/whomade

Who made this image? Verifies C2PA, reads AI metadata and spots Gemini's watermark.

Documentation

whomade

Who made this image? whomade verifies C2PA Content Credentials against the official C2PA trust list, reads the metadata AI generators leave behind and spots Gemini's visible watermark. It runs locally: nothing is uploaded unless you ask for OpenAI's check.

$ npx whomade amsterdam.png gemini.png
amsterdam.png
  AI-generated by ChatGPT (gpt-image): verified
  verified c2pa      Signed by OpenAI OpCo, LLC, chaining to Trufo C2PA Root CA (2025, ECC P384) on the C2PA trust list. Declares trainedAlgorithmicMedia. Declares an invisible watermark.

gemini.png
  AI-generated by Google Gemini: unverified, easy to fake or strip
  claimed  watermark Gemini's visible sparkle watermark, 96 px, 64 px from the corner (match 0.79).

Use

CLI

npx whomade photo.jpg https://example.com/image.png
npx whomade photo.jpg --json     # one JSON report per line
npx whomade photo.jpg --openai   # also ask OpenAI for its SynthID watermark (uploads the image)

MCP server — lets an assistant answer "who made this image?"

claude mcp add whomade -- npx -y whomade mcp

For Claude Desktop, Cursor and other clients:

{ "mcpServers": { "whomade": { "command": "npx", "args": ["-y", "whomade", "mcp"] } } }

The server exposes one read-only tool, who_made, which takes a file path or URL. Its optional openai flag needs OPENAI_API_KEY in the server's environment.

Library

import { describe, whomade } from 'whomade';

const report = await whomade(await readFile('photo.jpg')); // Uint8Array or ArrayBuffer
report.ai;          // true | false | null
describe(report);   // "AI-generated by ChatGPT (gpt-image): verified"

await whomade(bytes, { openaiApiKey: process.env.OPENAI_API_KEY }); // opt-in remote check
interface Report {
  ai: boolean | null;                          // null: no evidence either way
  origin?: 'generated' | 'edited' | 'captured';
  confidence: 'verified' | 'signed' | 'claimed' | 'none';
  generator?: string;
  evidence: { source; confidence; origin?; generator?; signer?; detail: string }[];
}

What it checks

SourceFormatsExamples
C2PA Content CredentialsJPEG, PNG, HEIF, AVIFChatGPT, Adobe Firefly, Google, Samsung and Pixel cameras
IPTC digital source type (XMP)JPEG, PNG, WebPGoogle, Meta
Generator metadataPNGAUTOMATIC1111, Forge, ComfyUI, InvokeAI, NovelAI
EXIF SoftwareJPEG, PNG, WebPtools that sign their name
Gemini's visible watermarkJPEG, PNGGemini, Nano Banana
OpenAI's SynthID watermark (--openai)JPEG, PNG, WebPChatGPT, OpenAI API, even after screenshots

Each piece of evidence gets one of three confidence levels:

ConfidenceMeaning
verifiedValid C2PA signature from a certificate that chains to the C2PA trust list, or the generator's own watermark detector.
signedValid C2PA signature, but the certificate is not on the trust list. Anyone can make one.
claimedUnsigned metadata, a C2PA manifest that fails validation, or a visible watermark. Easy to fake or strip.

How the Gemini check works

Gemini blends a white sparkle into the bottom-right corner. Google has shipped several layouts (logo 36 to 96 px, margin 32 to 192 px), but the right and bottom margins are always equal, so whomade searches that diagonal at every plausible size, which also covers resized images. It correlates a high-passed corner with the sparkle and compares against the same search in the other three corners.

Measured on 43 real Gemini images and 1,080 crops of 45 other images: 31 watermarks found, 0 false positives. The misses are watermarks that are barely visible to begin with. Cleanly removed watermarks are not detected.

Limits

  • Most sites, messaging apps and screenshots strip metadata. ai: null means no evidence, not "made by a human".
  • Google's own SynthID is only checkable at synthid.com for now; --openai covers OpenAI's.
  • Detection is evidence-based, not a pixel classifier, so it never guesses.

Roadmap

  • Open invisible watermarks: Adobe TrustMark, Stable Diffusion and FLUX
  • Google's SynthID API once it opens
  • Forensic views: error level analysis, noise and frequency maps

License

MIT. The bundled trust list is © C2PA under CC BY 4.0; refresh it with npm run update-trust-list. The sparkle alpha map comes from gemini-watermark-remover (MIT). Test fixtures come from c2pa-rs (MIT OR Apache-2.0) and gemini-watermark-remover.

NPM
whomade
Install Command
npm install whomade