dotfiles/home/default/scripts/prep-camera-photo

8 lines
322 B
Plaintext
Raw Normal View History

2023-11-15 11:16:12 -05:00
#!/usr/bin/env sh
set +eou pipefail
# Takes the latest photo from my camera stream and removes exif data from it
LATEST_PHOTO=$(ls -t1 /home/default/syncthing/camera/Camera | head -n 1)
cp "/home/default/syncthing/camera/Camera/${LATEST_PHOTO}" /home/default/Downloads/temp
cd /home/default/Downloads/temp && remove-exif