ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Reiner on October 07, 2022, 03:18:06 PM

Title: Strange behavior with DateTimeOriginal output from Camera+ HEIC-Files on iPhone
Post by: Reiner on October 07, 2022, 03:18:06 PM
Since update to Version 22.2.5 of Camera+ on my iPhone, exiftool ignores the "-d %s" option for tag "Date Time Original". Output from HEIC-format of images taken with the native iPhone camera app and older versions of Camera+ is ok.

Output from Camera+ 22.2.5:
$ exiftool -datetimeoriginal -d %s 122APPLE/IMG_2529.HEIC
Date Time Original              : 2022:10:06 14:49:13.184

$ exiftool -alldates -d %s 122APPLE/IMG_2529.HEIC
Date Time Original              : 2022:10:06 14:49:13.184
Create Date                     : 1665060553
Modify Date                     : 1665060553

$ exiftool -G -d %s 122APPLE/IMG_2529.HEIC | grep Date
[File]          File Modification Date/Time     : 1665133612
[File]          File Access Date/Time           : 1665169659
[File]          File Inode Change Date/Time     : 1665134029
[XMP]           Create Date                     : 1665060553
[XMP]           Modify Date                     : 1665060553
[XMP]           Date Time Original              : 2022:10:06 14:49:13.184
[XMP]           Date Created                    : 1665060553
[ICC_Profile]   Profile Date Time               : 1640991600
[Composite]     Create Date                     : 1665060553
[Composite]     Date/Time Original              : 1665060553
[Composite]     Modify Date                     : 1665060553

Output from HEIC-format files of apple's native camera app is ok:

$ exiftool -d %s -alldates 122APPLE/IMG_2477.HEIC
Date/Time Original              : 1665060598
Create Date                     : 1665060598
Modify Date                     : 1665060598

With older HEIC-format files of previous versions of Camera+ output is also correct:

$ exiftool -d %s -alldates  HEIC/IMG_9178.HEIC
Date/Time Original              : 1645979622
Create Date                     : 1645979622
Modify Date                     : 1645979622

exiftool version: 12.47
Operating system: macOS Mojave 10.14.6
Camera: iPhone X
iOS Version 16.0.2
Camera App: Camera+ Version 22.2.5 (https://apps.apple.com/de/app/camera/id1313580627 (https://apps.apple.com/de/app/camera/id1313580627))


Best Regards,
Reiner


Title: Re: Strange behavior with DateTimeOriginal output from Camera+ HEIC-Files on iPhone
Post by: Phil Harvey on October 07, 2022, 04:42:56 PM
Hi Reiner,

ExifTool only reformats pre-defined date/time tags.  The lack of a "/" in "Date/Time" in this line is a give away that this tag is not pre-defined:

Date Time Original              : 2022:10:06 14:49:13.184
Add the -G1 option to see where this tag is coming from, and check with the XMP tags (https://exiftool.org/TagNames/XMP.html) to see if it is a standard tag (I'm 90% sure it isn't, but it would be interesting to see how Apple has screwed things up this time).

- Phil

Edit: I just noticed you uploaded the sample.  The tag is in the XMP "photoshop" namespace, which is wrong.  It should be in the "exif" namespace.  This bug should be reported to Apple Camera+.

Edit2: Are you sure this file is straight from the camera?  There is a latenitesoft "camplus2" namespace in the XMP that I don't think would be written by Apple software.

Edit3: Actually reading more of your post this time, I see the software was by Camera+, not Apple.
Title: Re: Strange behavior with DateTimeOriginal output from Camera+ HEIC-Files on iPhone
Post by: Reiner on October 10, 2022, 03:29:37 AM
Hello Phil,
thank you for analyzing the problem and your hints for a solution. I will report it to LateNiteSoft.
Thanks again,
Reiner