[Digikam-devel] [Bug 115764] Modify EXIF creation date
Christoph Neuroth
delmonico at gmx.net
Sun Nov 6 08:50:07 GMT 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=115764
------- Additional Comments From delmonico gmx net 2005-11-06 09:50 -------
Just in case someone has the same problem, heres my script using perl-exiftool:
#Usage:$0 old_date new_date file[s]
OLD_DATE=$1
NEW_DATE=$2
echo "Modifying EXIF entrys from $1 to $2..."
shift 2;
for file in $ ; do
»···echo "Modifying $file"
»···echo " Creating backup file..."
»···cp $file $file.bak
»···ModifyDate=`exiftool -ModifyDate $file | sed s/'Date\/Time Of Last Modification : '// | sed s/$OLD_DATE/$NEW_DATE/`
»···DateTimeOriginal=`exiftool -DateTimeOriginal $file | sed s/'Shooting Date\/Time : '// | sed s/$OLD_DATE/$NEW_DATE/`
»···CreationDate=`exiftool -CreateDate $file | sed s/'Date\/Time Of Digitization : '// | sed s/$OLD_DATE/$NEW_DATE/`
»···echo " Writing new entry for ModifyDate: $ModifyDate..."
»···exiftool -ModifyDate="$ModifyDate" "$file"
»···echo " Writing new entry for DateTimeOriginal: $DateTimeOriginal..."
»···exiftool -DateTimeOriginal="$DateTimeOriginal" "$file"
»···echo " Writing new entry for CreationDate: $CreationDate..."
»···exiftool -CreateDate="$CreationDate" "$file"
done
More information about the Digikam-devel
mailing list