ExifTool Forum

General => Metadata => Topic started by: mhdebokx on October 24, 2012, 04:07:38 PM

Title: Composite value DateTimeOriginal is incorrect
Post by: mhdebokx on October 24, 2012, 04:07:38 PM
Many of my pictures have an incorrect DateTimeOriginal value as an composite.

The base value in the EXIF tags is correct
---- EXIF ----  (snippet)
Compression                : JPEG (old-style)
Make                       : Canon
Camera Model               : Canon DIGITAL IXUS 750
Modify Date                : 2009:07:04 10:44:53
Date/Time Original         : 2009:07:04 10:44:53
Create Date                : 2009:07:04 10:44:53


In the composite there is an extra .0 in the value. Unfortunately my mediacenter software doesn't like this
---- Composite ----  (snippet)
Create Date                     : 2009:07:04 10:44:53.0
Date/Time Original              : 2009:07:04 10:44:53.0
Modify Date                     : 2009:07:04 10:44:53.0


How can I fix tis problem ? Or how can I remove these dates from the composite (because not all pics have these tags in the composite area).
I already tried to export all meta-data to MIE, deleted alle tags from the JPG and restored all meta-data.
Same problem still occures..
Title: Re: Composite value DateTimeOriginal is incorrect
Post by: Phil Harvey on October 24, 2012, 07:31:36 PM
The ".0" is the sub-seconds from the EXIF information.  Use the -e option to avoid creating the Composite tags, or specify the EXIF:CreateDate etc explicitly to use a version of the tag without the sub-seconds.  See the Composite tags documentation (https://exiftool.org/TagNames/Composite.html) for more information about the Composite tags.

- Phil
Title: Re: Composite value DateTimeOriginal is incorrect
Post by: mhdebokx on October 25, 2012, 12:28:26 AM
Thanks, but somehow the mediasoftware still detects the subseconds. You wrote "specify the EXIF:CreateDate etc explicitly to use a version of the tag without the sub-seconds." What doy you mean exacctly ? Eg. do I have to make an addition to the ".ExifTool_config" file ?
Title: Re: Composite value DateTimeOriginal is incorrect
Post by: Phil Harvey on October 25, 2012, 07:46:40 AM
On the command line, I meant a command like this:

exiftool -exif:creatdate FILE

But if you are using some other utility to run ExifTool, you may not be able to control this.

However, settings in the .ExifTool_config file will apply even if running via another utility.  So you could use this config file to turn off the Composite tags:

%Image::ExifTool::UserDefined::Options = (
    Composite => 0,
);
1; # end


- Phil