For Photographers/Lightroom Integration

Lightroom Export Script

A shell script that automatically protects photos after Lightroom export. Every photo you deliver is invisible to facial recognition — no extra steps.

1

Export from Lightroom

Edit and export as normal. The script runs automatically after export.

2

Script calls our API

Each exported photo is submitted for adversarial cloaking via the API.

3

Protected file saved

A _protected.png version appears next to each original export.

Setup Guide

1

Get an API key

Email partnerships@cloakbioguard.com to get an API key with 100 free test credits. Keys start with bsk_.

2

Download the script

# Download
curl -o cloakbioguard-protect.sh \
  https://cloakbioguard.com/scripts/cloakbioguard-protect.sh

# Make executable
chmod +x cloakbioguard-protect.sh

# Set your API key
export CLOAKBIOGUARD_API_KEY=bsk_your_key_here
3

Test it standalone

# Single photo
./cloakbioguard-protect.sh headshot.jpg

# Multiple photos
./cloakbioguard-protect.sh *.jpg

# Entire folder
./cloakbioguard-protect.sh /path/to/exports/*.jpg

saved next to the original.

4

Connect to Lightroom Classic

Option A: Post-Processing Action

  1. In Lightroom Classic, go to File > Export
  2. Scroll to Post-Processing section
  3. Set "After Export" to Open in Other Application
  4. Browse to the cloakbioguard-protect.sh script
  5. Save as an export preset for reuse

Option B: Batch after export

Export as normal, then run the script on your export folder:

./cloakbioguard-protect.sh ~/Pictures/Exports/ClientName/*.jpg

Requirements

System

  • macOS or Linux (Windows via WSL)
  • curl (pre-installed on macOS/Linux)
  • jq (optional, for better JSON parsing)

CloakBioGuard

  • API key (email partnerships@cloakbioguard.com)
  • Internet connection
  • ~30 seconds processing time per photo

Don't want to use the command line?

Use the bulk uploader instead — drag and drop up to 20 photos in your browser.

Bulk Upload