Skip to content

Instantly share code, notes, and snippets.

@lkwg82
Last active July 23, 2018 04:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lkwg82/5846675 to your computer and use it in GitHub Desktop.
Save lkwg82/5846675 to your computer and use it in GitHub Desktop.
#!/bin/bash
g=gphoto2
function cap(){
$g --capture-image-and-download
}
function config()
{
$g --set-config=$1
}
config /main/imgsettings/imageformat="sRAW"
for shutterspeed in 2 1.6 1.3 1 0.8 0.6 0.5 0.4 0.3 1/4 1/5 1/6 1/8 1/10 1/13 1/15 1/20 1/25 1/30 1/40 1/50 1/60 1/80 1/100 1/125 1/160 1/200 1/250 1/320 1/400 1/500 1/640 1/800 1/1000 1/1250 1/1600 1/2000 1/2500 1/3200 1/4000 1/5000 1/64001/8000;
do
config /main/capturesettings/shutterspeed=$shutterspeed
for aperture in 1.4 1.6 1.8 2 2.2 2.5 2.8 3.2 4 3.5 4.5 5 5.6 6.3 7.1 8 9 10 11 13 14 16 18 20 22;
do
config /main/capturesettings/aperture=$aperture
for iso in 100 125 160 200 250 320 400 500 640 800 1000 1250 1600 2000 2500 3200 4000 5000 6400;
do
config /main/imgsettings/iso=$iso
cap
mv capt0000.cr2 mond_$shutterspeed"_"$aperture"_"$iso.cr2
done
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment