Skip to content
mentoor

Topic 5 of 6 · 4 min read

Labeling generated images with content credentials

Goal: Decide which provenance signals a product must attach to generated images and where in the pipeline they could be lost.

Attach provenance in three layers, signed metadata, an invisible watermark and a visible label, and treat every step that re-encodes the image as a place where the first layer can be lost.

Check yourself · 1 of 3

Which layer of provenance is the one most viewers actually read?

Choose one answer

Why it matters

People need to know when an image is machine-made, and in the EU the law now says so. Article 50 of the EU AI Act requires providers of systems that generate synthetic images to mark the output in a machine-readable format that can be detected as artificially generated, and requires deployers of deepfakes to disclose them. Which role your product has depends on whether you build the generator or run someone else's inside your app, so ask your lawyer. Either way, the technical question is the same: which signal survives your pipeline.

The three layers

  1. Content credentials (C2PA). A signed manifest embedded in the file: who made it, with which tool, and what edits followed. It is strong evidence when intact, and a plain file copy keeps it. It does not survive a re-encode that drops metadata.
  2. Invisible watermarks. Systems such as Google's SynthID place a pattern in the pixels themselves, designed to survive some compression and cropping. Detection needs the vendor's detector, and no watermark is guaranteed to survive every edit.
  3. Visible labels. A badge or caption such as "AI-generated" is the layer people actually read. It is easy to crop, so it is a courtesy and a legal signal, not a security feature.

Where it is lost

Walk the file through your pipeline and ask what each step does to metadata:

  • Upload resize or thumbnail services often decode and re-encode, dropping embedded manifests.
  • Conversion to WebP or JPEG by a CDN can do the same.
  • Screenshots and social platforms strip metadata.
  • Your own code that draws a text overlay and saves again.

Before and after

Before: Provider returns a PNG with credentials. The app resizes it with a library that does not copy metadata, saves the thumbnail and serves only that. No signal is left on the served file.

After: The app keeps the original with its manifest, serves a derived file, signs or re-attaches credentials after the last transformation, adds a visible "AI-generated" label in the UI, and checks the served file with a verification tool in a test.

What goes wrong

  • Teams verify the provider's output and never verify the file users download.
  • A visible label exists only on the web page, not on the exported image.
  • The company claims the image is "tamper-proof" when credentials are only evidence that can be removed.
  • Compliance is checked once and not again after the image pipeline changes.

Examples

Tracing the loss

Provider output: PNG with manifest. Resize service: re-encodes, manifest gone. CDN: converts to WebP, nothing to carry. Fix: keep the original, re-attach credentials after the last step, and add a test that reads the served file.

What each layer proves

Credentials show origin and edit history when present. A watermark shows machine origin even if metadata is gone, if the detector is available. A visible label tells a casual viewer right now. None alone is enough.

Key points

  • Use three layers: signed C2PA metadata, an invisible watermark and a visible label.
  • EU AI Act Article 50 requires machine-readable marking of generated content and disclosure of deepfakes.
  • C2PA metadata is lost when a step re-encodes the image without copying it.
  • Invisible watermarks can survive some edits but never all, and need the vendor's detector.
  • Verify the file users actually receive, not the file the provider returned.

Common mistakes

  • Checking credentials on the provider's file and never on the file served to users.
  • Relying on one layer, usually the visible label, which is easily cropped.
  • Resizing or converting with a tool that silently drops metadata.
  • Describing credentials as tamper-proof when they are removable evidence.

Check yourself · 2 of 3

Your app resizes every generated PNG into a thumbnail with a library that decodes and re-saves it. What is the likely effect on content credentials?

Choose one answer

Check yourself · 3 of 3

Under EU AI Act Article 50, which duty falls on a provider of a system that generates synthetic images?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic

Where to go in your country