Lightroom Export Script
A shell script that automatically protects photos after Lightroom export. Every photo you deliver is harder for facial recognition to match — no extra steps.
Export from Lightroom
Edit and export as normal. The script runs automatically after export.
Script calls our API
Each exported photo is submitted for adversarial cloaking via the API.
Protected file saved
A _protected.png version appears next to each original export.
Setup Guide
Get an API key
Email partnerships@cloakbioguard.com to get an API key with 100 free test credits. Keys start with bsk_.
Set up the script
We send the script along with your API key.
# Make executable chmod +x cloakbioguard-protect.sh # Set your API key export CLOAKBIOGUARD_API_KEY=bsk_your_key_here
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.
Connect to Lightroom Classic
Option A: Post-Processing Action
- In Lightroom Classic, go to File > Export
- Scroll to Post-Processing section
- Set "After Export" to Open in Other Application
- Browse to the
cloakbioguard-protect.shscript - 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