I have a number of photographs that have lost their orginal created and modified dates...
is there a way to restore photographs that have lost thier created and modified dates?
Paul
Moderator: Mr_Noodle
exiftool [path to image file]
for f in *.jpg;
do date=$(printf %s "$f" | sed -E 's|^(....)-(..)-(..) (..)\.(..)\.(..).*|\2/\3/\1/ \4:\5:\6|'); SetFile -m "$date" -d "$date" "$f";
done
sed -E 's|^(....)-(..)-(..) (..)\.(..)\.(..).*|\2/\3/\1/ \4:\5:\6|'