Create Canon DSLR CR2 image statistics (exiftool & GNU Plot) and convert ML dual ISO CR2 files painlessly for post-processing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

13 lines
250 B

#!/bin/env bash
while [[ $# -gt 0 ]]
do
INPUT="${1}"
MTIME=$(exiftool -d "%s" -DateTimeOriginal -s -S "${INPUT}")
if [[ ! -z "${MTIME}" ]]; then
touch --date=@${MTIME} "${INPUT}"
fi
# Move to the next file.
shift
done