Bug 115764 - Modify EXIF creation date
Summary: Modify EXIF creation date
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Date (show other bugs)
Version: 0.7.4
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-06 09:05 UTC by Christoph Neuroth
Modified: 2017-08-12 06:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.9.0
Sentry Crash Report:


Attachments
script to modify wrong exif datetime entrys (924 bytes, application/x-shellscript)
2005-11-06 09:54 UTC, Christoph Neuroth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Neuroth 2005-11-06 09:05:16 UTC
Version:           0.7.4 (using KDE KDE 3.4.92)
Installed from:    Unlisted Binary Package

I have some images where the date setting of the camera was wrong by 1 day. Now I would like to use the "Adjust date and time option" to add this day, but it can only modify the file creation date, not the EXIF information... Need to write a shell script for now, but it would be good to this digikam feature enhanced in a new version :) Thanks for this great application! Chris
Comment 1 Christoph Neuroth 2005-11-06 09:50:07 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
Comment 2 Christoph Neuroth 2005-11-06 09:54:33 UTC
Created attachment 13305 [details]
script to modify wrong exif datetime entrys

Fixed one bug in above script and attached instead of paste, sorry.
Comment 3 Thomas McGuire 2005-12-21 16:48:38 UTC
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
Comment 4 Christian Krause 2006-01-02 19:33:09 UTC
*** This bug has been confirmed by popular vote. ***
Comment 5 caulier.gilles 2006-03-03 10:59:41 UTC
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  
Comment 6 caulier.gilles 2006-04-03 16:01:32 UTC
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  
Comment 7 caulier.gilles 2006-04-03 16:04:11 UTC
This features is now implemented. I close this file...

Gilles Caulier
Comment 8 Michał Kosmulski 2007-08-16 21:44:55 UTC
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.
Comment 9 Paweł Marciniak 2007-08-17 12:14:17 UTC
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"?