#!/usr/bin/env bash
set -euo pipefail
# Input screenshots: 2880x2000 pixels, 1440x1000 CSS viewport, DPR 2.
# Only path subtitles are redacted. Labels are unchanged.
input_dir="$1"
for side in base head; do
  convert "$input_dir/$side-settings-raw.png" -resize 1920x \
    -fill '#0a0a0a' -draw 'rectangle 600,314 1590,338 rectangle 600,394 1590,418' \
    -fill '#888888' -font DejaVu-Sans -pointsize 14 \
    -draw "text 604,331 '[synthetic checkout path redacted]' text 604,411 '[synthetic checkout path redacted]'" \
    -crop 1678x1207+105+53 +repage "$input_dir/$side-settings.png"
done
