Update for exif 0.6.20.
authorFrancois Fleuret <francois@fleuret.org>
Sun, 21 Sep 2014 19:40:46 +0000 (21:40 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Sun, 21 Sep 2014 19:40:46 +0000 (21:40 +0200)
redatepic.sh

index 06460d4..fc6a606 100755 (executable)
@@ -25,7 +25,8 @@ while [ $1 ]; do
 
     if [[ -f ${REFERENCE} ]]; then
 
-        TAG=$(exif --ifd=EXIF -t "Date and Time (original)" ${REFERENCE} | grep Value)
+        # TAG=$(exif --ifd=EXIF -t "Date and Time (original)" ${REFERENCE} | grep Value)
+        TAG=$(exif --ifd=EXIF -t 0x9003 ${REFERENCE} | grep Value)
 
         if [[ ${TAG} ]]; then
             TIMESTAMP=$(echo ${TAG} | sed -e \