]> git.deb.at Git - debienna.git/blob - EOSandGphoto/index.mdwn
change all users that are found in text to the new path
[debienna.git] / EOSandGphoto / index.mdwn
1
2
3 [[!format txt """
4 gphoto2 --set-config /main/camera/shutterspeed=1/20 --set-config /main/camera/resolution=1 --interval 5 --frames 5 --capture-image-and-download --hook-script ./rename_image.sh
5 """]]
6 ./rename_image.sh
7 [[!format txt """
8 #!/bin/bash
9 # We have to move images from gphoto2 because gphoto2 cannot move them...
10 PREFIX="IMG_"
11 [ $ACTION == "download" ] && (mv $ARGUMENT $(exif -t 0x0132 -m $ARGUMENT | sed -e's/:\| //g' -e's/$/.jpg/' -e"s/^/$PREFIX/")) || exit 0
12 """]]