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

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