diff --git a/4_scripts/imagetools_02_dualiso.sh b/4_scripts/imagetools_02_dualiso.sh index a8dc16b..ce24dff 100644 --- a/4_scripts/imagetools_02_dualiso.sh +++ b/4_scripts/imagetools_02_dualiso.sh @@ -46,6 +46,7 @@ while \ do INPUT="${1}" + INPUT_MTIME=$(stat -c "%Y" "${INPUT}") OLDFILE_CR2=$(basename "${INPUT}") # Once we do this, it's very clear which kind of CR2 file we're talking about here. @@ -82,6 +83,8 @@ do # Add Subject=Dual-ISO tag for every Dual ISO CR2 file. echo "Writing new EXIF/XMP tag Subject: Dual ISO CR2" exiftool -xmp:subject="Dual ISO CR2" "${INPUT_DIR}/${NEWFILE_CR2}" -overwrite_original + touch --date=@"${INPUT_MTIME}" "${INPUT_DIR}/${NEWFILE_CR2}" + touch --date=@"${INPUT_MTIME}" "${INPUT_DIR}/converted_dual_iso/${NEWFILE_DNG}" fi fi diff --git a/4_scripts/imagetools_03_raw_resolution-baseline.sh b/4_scripts/imagetools_03_raw_resolution-baseline.sh index cfe1d11..995a1fe 100644 --- a/4_scripts/imagetools_03_raw_resolution-baseline.sh +++ b/4_scripts/imagetools_03_raw_resolution-baseline.sh @@ -59,6 +59,7 @@ do # Values that change during the while loop (differ from file to file) INPUT="${1}" + INPUT_MTIME=$(stat -c "%Y" "${INPUT}") INPUT_BASENAME=$(basename "${INPUT}" | cut -f 1 -d '.') @@ -476,6 +477,7 @@ do mv "${INPUT}" "${NEWFILE}" exiftool '-FileName