!/bin/sh

targetDir="$HOME/media/camera/$(date +%F)"

mkdir -p "$targetDir" ||

{

    echo "Failed to create $targetDir"

    exit

}

cd "$targetDir" ||

{

    echo "Failed to CD to $targetDir"

    exit

}

gphoto2 --get-all-files --skip-existing &&

for file in *.JPG *.jpg *.PNG *.png; do

    [ -f "$file" ] || continue

    exiftran -g -i -a "$file"

done &&

echo "Fotos copied to: $targetDir"

gphoto2 --delete-all-files --recurse

Proxy Information
Original URL
gemini://texto-plano.xyz/draco/scripts/fotos
Status Code
Success (20)
Meta
application/octet-stream
Capsule Response Time
904.232933 milliseconds
Gemini-to-HTML Time
0.385359 milliseconds

This content has been proxied by September (3851b).