Summary: | Modify EXIF creation date | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Christoph Neuroth <delmonico> |
Component: | Metadata-Date | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 0.7.4 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.9.0 | |
Sentry Crash Report: | |||
Attachments: | script to modify wrong exif datetime entrys |
Description
Christoph Neuroth
2005-11-06 09:05:16 UTC
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 Created attachment 13305 [details]
script to modify wrong exif datetime entrys
Fixed one bug in above script and attached instead of paste, sorry.
A also would like that functionallity, my camara is very broken and changes dates randomly, I even have pictures from 2026... The normal adjust date & time function is useless because: - it does not adjust the EXIF info - it does not allow to set the date directly, only adding/substracting time periods, which is cumbersome *** This bug has been confirmed by popular vote. *** SVN commit 515268 by cgilles: digikam from trunk : Metadata support using Exiv2 : - New image properties sidebar tab named "Metadata" instead old "Exif". This area include : * Standard Exif tags viewer. * MarkerNote Exif tags viewer. * IPTC records viewer. - New capability to copy metadata in clipboard like text. - New capability to print metadata. - Tags name use the "user Friendly" conversion from Exiv2 instead the internal name provided by old Exif viewer based on libkexif. - Capability to read metadata from CRW files (Canon RAW files) - New class DMetadata to load/save metadata without loading image data. Actually JPEG, CRW, and PNG files are supported. About PNG (Exif and IPTC raw profiles generated by ImageMagick are supported. To support new file formats (like NEF, MRW, TIFF, DNG, etc), new image file parsers must be added to Exiv2 library. IMPORTANT: - Exiv2 do not support yet gettext for i18n rules. All informations in metadata viewers aren't yet i18n (tags name, tags values, and tags descriptions) - Any tag names use internal Exiv2 name, not the user friendly text transformations. This point must be fixed in Exiv2 libs. To 0.9.0, these tools are just metadata readers. Writting capabilities (metadata editors) will added later 0.9.0. The files in B.K.O directly or indirectly relevant of this commits are listed below : *Pending: 103255 106103 115764 111560 *Partially fixed: 91812 96459 109253 110598 118501 * To check before closing: 122264 * Fixed (can be closed): 103489 121371 105670 109319 CCMAIL: digikam-devel@kde.org, Andreas Huggel <ahuggel@gmx.net> CCBUGS: 103255, 106103, 115764, 111560, 91812, 96459, 109253, 110598, 118501, 122264, 103489, 121371, 105670, 109319 M +2 -1 libs/Makefile.am M +5 -4 libs/dimg/Makefile.am M +1 -1 libs/dimg/dimg.cpp M +1 -1 libs/dimg/dimg.h M +19 -1 libs/dimg/dimgloader.cpp M +4 -2 libs/dimg/dimgloader.h M +4 -61 libs/dimg/loaders/jpegloader.cpp M +5 -29 libs/dimg/loaders/pngloader.cpp M +2 -1 libs/dimg/loaders/rawloader.cpp A libs/dmetadata (directory) A libs/dmetadata/Makefile.am A libs/dmetadata/dmetadata.cpp [License: GPL] A libs/dmetadata/dmetadata.h [License: GPL] A libs/dmetadata/loaders (directory) A libs/dmetadata/loaders/Makefile.am A libs/dmetadata/loaders/dmetaloader.cpp [License: GPL] A libs/dmetadata/loaders/dmetaloader.h [License: GPL] A libs/dmetadata/loaders/jpegmetaloader.cpp [License: GPL] A libs/dmetadata/loaders/jpegmetaloader.h [License: GPL] A libs/dmetadata/loaders/pngmetaloader.cpp [License: GPL] A libs/dmetadata/loaders/pngmetaloader.h [License: GPL] A libs/dmetadata/loaders/rawmetaloader.cpp [License: GPL] A libs/dmetadata/loaders/rawmetaloader.h [License: GPL] A libs/dmetadata/loaders/tiffmetaloader.cpp [License: GPL] A libs/dmetadata/loaders/tiffmetaloader.h [License: GPL] M +3 -2 libs/imageproperties/Makefile.am M +82 -323 libs/imageproperties/imagepropertiesexiftab.cpp M +12 -25 libs/imageproperties/imagepropertiesexiftab.h M +19 -18 libs/imageproperties/imagepropertiessidebar.cpp M +10 -9 libs/imageproperties/imagepropertiessidebar.h M +27 -26 libs/imageproperties/imagepropertiessidebarcamgui.cpp M +2 -1 libs/imageproperties/imagepropertiessidebarcamgui.h M +16 -15 libs/imageproperties/imagepropertiessidebardb.cpp M +3 -1 libs/widgets/Makefile.am A libs/widgets/metadata (directory) A libs/widgets/metadata/Makefile.am A libs/widgets/metadata/exifwidget.cpp [License: GPL] A libs/widgets/metadata/exifwidget.h [License: GPL] A libs/widgets/metadata/iptcwidget.cpp [License: GPL] A libs/widgets/metadata/iptcwidget.h [License: GPL] A libs/widgets/metadata/makernotewidget.cpp [License: GPL] A libs/widgets/metadata/makernotewidget.h [License: GPL] A libs/widgets/metadata/mdkeylistviewitem.cpp [License: GPL] A libs/widgets/metadata/mdkeylistviewitem.h [License: GPL] A libs/widgets/metadata/metadatalistview.cpp [License: GPL] A libs/widgets/metadata/metadatalistview.h [License: GPL] A libs/widgets/metadata/metadatalistviewitem.cpp [License: GPL] A libs/widgets/metadata/metadatalistviewitem.h [License: GPL] A libs/widgets/metadata/metadatawidget.cpp [License: GPL] A libs/widgets/metadata/metadatawidget.h [License: GPL] M +24 -1 utilities/cameragui/cameraui.cpp SVN commit 525972 by cgilles: digikam from trunk : Camera GUI : - new option to set Date&Time Exif Tags on the fly during download if camera don't set it when pictures are taken. - new options to set IPTC photographers identity on the fly using digiKam metadata setup. CCMAIL: digikam-devel@kde.org CCBUGS: 103255, 121306, 115764 M +4 -2 TODO M +55 -24 utilities/cameragui/cameracontroller.cpp M +7 -3 utilities/cameragui/cameracontroller.h M +78 -27 utilities/cameragui/cameraui.cpp This features is now implemented. I close this file... Gilles Caulier As of digikam 0.9.2, editing the date using the side panel or using the 'Adjust Date & Time' option seems to only change some date (which affects sorting) but not the exif date or file date. After the date is changed, sorting order is affected but the creation and mnodification date shown in the tooltips in digikam and in the metadata preview in konqueror seem to not be changed. I confirm that the behavior Michał mentioned has been confusing for me as well. The "Adjust Date & Time" option changes only dates in digiKam's database and (based on selected checkbox) the "general" exif date, which is often modified by various programs, so it is not useful for sorting purposes anyway (I mean sorting outside digiKam). Recently I found out that by following the date change operation by "Synchronize images with database" it is possible to change the exif "Date and Time (original)" field as well. I would love to have this option available directly when updating date & time (possibly by another checkbox). Should I file a wish on b.k.o. or is this behavior "by design"? |