DEV Community

Cover image for Stop Instagram and TikTok labelling your Photoshop and Premiere exports as AI
Sebastian Balog
Sebastian Balog

Posted on Edited on

Stop Instagram and TikTok labelling your Photoshop and Premiere exports as AI

Quick fix: the label comes from Content Credentials (C2PA) that Photoshop and Premiere Pro write into your export after a generative edit, and export settings don't switch them off. Check every file as it lands in your export folder and remove those credentials before posting: below is a free script that does it, and an app that does it for you on Mac and Windows.

Why your exports get labelled

If you edit for clients or post every day, the "AI info" problem isn't one photo. It's every export. One Generative Fill in Photoshop or two seconds of Generative Extend in Premiere Pro, and the file you deliver carries Content Credentials (C2PA) that Instagram, Facebook, TikTok, YouTube and LinkedIn read and turn into a label.

Adobe's own FAQ says that when its generative tools create or modify content, C2PA metadata is attached automatically and can't be switched off for that content. Photoshop's Export As → Metadata: None controls camera and copyright info, not that record. So the dependable place to check is the exported file, right after it lands in your export folder.

Here's how to automate that check yourself, and the gotchas that make it harder than it looks.

What to look for

Two markers do almost all the labelling:

  • C2PA manifest: JUMBF boxes labelled c2pa (in JPEG they sit in APP11 segments; in MP4/MOV in a top-level uuid box).
  • IPTC digital source type: Iptc4xmpExt:DigitalSourceType set to trainedAlgorithmicMedia or compositeWithTrainedAlgorithmicMedia.

A quick check for one file:

c2patool "export.jpg" >/dev/null 2>&1 && echo "C2PA manifest present"
exiftool -q -q -if '$XMP-iptcExt:DigitalSourceType =~ /TrainedAlgorithmic/i' -p '$FileName: AI source tag' "export.jpg"
Enter fullscreen mode Exit fullscreen mode

A DIY watcher (macOS, fswatch)

#!/usr/bin/env bash
# watch-exports.sh: flag new exports that carry AI metadata
# needs: brew install fswatch exiftool c2patool
DIR="${1:-$HOME/Exports}"

settled() {               # wait until the editor has finished writing
  local f="$1" a b
  while :; do
    a=$(stat -f %z "$f" 2>/dev/null) || return 1
    sleep 2
    b=$(stat -f %z "$f" 2>/dev/null) || return 1
    [[ "$a" == "$b" ]] && return 0
  done
}

check() {
  local f="$1" hits=()
  c2patool "$f" >/dev/null 2>&1 && hits+=("C2PA")
  exiftool -q -q -if '$XMP-iptcExt:DigitalSourceType =~ /TrainedAlgorithmic/i' -p x "$f" | grep -q x && hits+=("IPTC AI tag")
  if ((${#hits[@]})); then
    osascript -e "display notification \"${hits[*]}\" with title \"AI metadata: $(basename "$f")\""
  fi
}

fswatch -0 -r -e '.*' -i '\.(jpe?g|png|mp4|mov)$' --event Created --event Updated "$DIR" |
while IFS= read -r -d '' f; do
  [[ "$(basename "$f")" == clean_* ]] && continue
  settled "$f" && check "$f"
done
Enter fullscreen mode Exit fullscreen mode

It works, and it's a good way to see how often your exports actually carry these markers. The parts that take the most care:

  • "Finished writing" is the hard part. Premiere and Media Encoder write large files over minutes; Photoshop writes a temp file and renames it. The size-stable loop above is the simplest heuristic; a render that pauses mid-write can still fool it.
  • Recursion and noise. Editors create sidecar and cache files; filter by extension and ignore your own clean_ outputs or you'll loop.
  • Cleaning without damage. The naive exiftool -all= also deletes the colour profile and orientation. Use exiftool -all= -tagsfromfile @ -icc_profile -orientation file.jpg for photos, and a stream-copy remux for video: ffmpeg -i in.mp4 -map 0 -c copy -map_metadata -1 out.mp4.
  • Verifying. Re-run the checks on the output (c2patool should say No claim found), and for video compare ffmpeg -f streamhash of input and output.
  • Windows. No fswatch; you'd rebuild this around PowerShell's FileSystemWatcher.

The app version

I got tired of maintaining scripts like this, so it became a feature in MetaClean, my Mac and Windows metadata app. Watch Folders runs in the background on your export folders, subfolders included. Every new JPG, PNG, MP4 or MOV is checked once it has finished saving, whether it came from Photoshop, Lightroom, Premiere Pro or Media Encoder, CapCut or was just copied in. Files without AI metadata never interrupt you. When one carries Content Credentials or an AI-origin tag, a compact prompt lists what was found, and Clean saves a verified clean_ copy next to the original: no re-encoding, colour profile and orientation kept, video streams copied as they are. For existing archives there's a batch mode for whole folders. Everything stays on your machine. 3-day free trial, then $5 once.

Disclosure: I'm the developer of MetaClean.

TL;DR

  • Generative edits in Photoshop and Premiere attach C2PA automatically; export settings don't remove it.
  • Check exports with c2patool and the IPTC DigitalSourceType tag.
  • Automate with a folder watcher, but handle "file finished", recursion, safe cleaning and verification.
  • Or let MetaClean's Watch Folders do it on Mac and Windows.

Top comments (0)