Soemthing odd with a photo's metadata

Started by Alan Clifford, January 29, 2021, 10:03:23 AM

Previous topic - Next topic

Alan Clifford

I'm trying a new camera app on my phone.  Nikonviewnx-i normally shows metadata from photos from my phone but not from this one captured with the new phone app.  It also doesn't sort on date.  The app is Open Camera.  Of course, it could be the Nikon software that is at fault.

A couple of differences I've noticed:  the file size is very much smaller and photos from the original camera app have this line
EXIF:InteropIFD:Image:Main:JPEG-APP1-IFD0-ExifIFD-InteropIFD] Interoperability Version: 0100
which is missing from the photo from Open Camera.

All the dates and stuff seem to be there but it doesn't show up in the Nikon software
[EXIF:IFD0]     Camera Model Name               : Mi A2 Lite
[File:System]   File Modification Date/Time     : 2021:01:29 11:52:53+00:00
[File:System]   File Access Date/Time           : 2021:01:29 14:53:20+00:00
[File:System]   File Inode Change Date/Time     : 2021:01:29 11:52:53+00:00
[EXIF:IFD0]     Modify Date                     : 2021:01:29 11:48:49
[EXIF:GPS]      GPS Date Stamp                  : 2021:01:29
[EXIF:ExifIFD]  Date/Time Original              : 2021:01:29 11:48:49
[EXIF:ExifIFD]  Create Date                     : 2021:01:29 11:48:49
[Composite]     Create Date                     : 2021:01:29 11:48:49.672031
[Composite]     Date/Time Original              : 2021:01:29 11:48:49.672031
[Composite]     Modify Date                     : 2021:01:29 11:48:49.672031
[Composite]     GPS Date/Time                   : 2021:01:29 11:48:49Z



Photo is here:  http://clifford.ac/~alan/mia2l_20210129_114849.jpg

A diff between this and a photo from the original camera app is here:  http://clifford.ac/~alan/diff.txt


Phil Harvey

> exiftool ~/Desktop/mia2l_20210129_114849.jpg -validate -warning -a
Validate                        : 51 Warnings (19 minor)
Warning                         : Entries in IFD0 are out of order
Warning                         : Tag ID 0x010f Make out of sequence in IFD0
Warning                         : Tag ID 0x0101 ImageHeight out of sequence in IFD0
Warning                         : Non-standard format (int32u) for IFD0 0x0112 Orientation
Warning                         : [minor] Unknown value for IFD0:Orientation
Warning                         : [minor] Odd offset for IFD0 tag 0x0132 ModifyDate
Warning                         : [minor] Odd offset for GPS tag 0x0002 GPSLatitude
Warning                         : [minor] Odd offset for GPS tag 0x0006 GPSAltitude
Warning                         : Entries in GPS are out of order
Warning                         : Tag ID 0x0001 GPSLatitudeRef out of sequence in GPS
Warning                         : Non-standard format (string) for GPS 0x001b GPSProcessingMethod
Warning                         : [minor] Odd offset for GPS tag 0x001b GPSProcessingMethod
Warning                         : Tag ID 0x0003 GPSLongitudeRef out of sequence in GPS
Warning                         : [minor] Odd offset for GPS tag 0x0007 GPSTimeStamp
Warning                         : [minor] Odd offset for GPS tag 0x0004 GPSLongitude
Warning                         : Tag ID 0x0004 GPSLongitude out of sequence in GPS
Warning                         : [minor] Odd offset for GPS tag 0x001d GPSDateStamp
Warning                         : [minor] Odd offset for IFD0 tag 0x011b YResolution
Warning                         : Tag ID 0x011b YResolution out of sequence in IFD0
Warning                         : [minor] Odd offset for IFD0 tag 0x8298 Copyright
Warning                         : [minor] Odd offset for IFD0 tag 0x011a XResolution
Warning                         : Tag ID 0x011a XResolution out of sequence in IFD0
Warning                         : Tag ID 0x0100 ImageWidth out of sequence in IFD0
Warning                         : [minor] Odd offset for IFD0 tag 0x0110 Model
Warning                         : Non-standard format (string) for ExifIFD 0x9000 ExifVersion
Warning                         : Entries in ExifIFD are out of order
Warning                         : Tag ID 0x8822 ExposureProgram out of sequence in ExifIFD
Warning                         : Tag ID 0x9203 BrightnessValue out of sequence in ExifIFD
Warning                         : Tag ID 0x9003 DateTimeOriginal out of sequence in ExifIFD
Warning                         : Tag ID 0x9291 SubSecTimeOriginal out of sequence in ExifIFD
Warning                         : Tag ID 0xa005 InteropOffset out of sequence in ExifIFD
Warning                         : [minor] Odd offset for ExifIFD tag 0x829a ExposureTime
Warning                         : Tag ID 0x829a ExposureTime out of sequence in ExifIFD
Warning                         : [minor] Odd offset for ExifIFD tag 0x9290 SubSecTime
Warning                         : Tag ID 0x829d FNumber out of sequence in ExifIFD
Warning                         : Tag ID 0x8827 ISO out of sequence in ExifIFD
Warning                         : Tag ID 0x9292 SubSecTimeDigitized out of sequence in ExifIFD
Warning                         : [minor] Odd offset for ExifIFD tag 0x9004 CreateDate
Warning                         : Tag ID 0x9004 CreateDate out of sequence in ExifIFD
Warning                         : [minor] Odd offset for ExifIFD tag 0x9201 ShutterSpeedValue
Warning                         : [minor] Odd offset for ExifIFD tag 0x920a FocalLength
Warning                         : Non-standard format (int32u) for ExifIFD 0x9208 LightSource
Warning                         : Tag ID 0x9208 LightSource out of sequence in ExifIFD
Warning                         : Tag ID 0x0128 ResolutionUnit out of sequence in IFD0
Warning                         : Entries in IFD1 are out of order
Warning                         : Tag ID 0x0103 Compression out of sequence in IFD1
Warning                         : Tag ID 0x011a XResolution out of sequence in IFD1
Warning                         : Missing required JPEG GPS tag 0x0000 GPSVersionID
Warning                         : Invalid value for GPS tag 0x001b GPSProcessingMethod
Warning                         : [minor] IFD0 tag 0x0100 ImageWidth is not allowed in JPEG
Warning                         : [minor] IFD0 tag 0x0101 ImageHeight is not allowed in JPEG


- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Alan Clifford

Thanks Phil.  Changing "odd" to "broken"  :'(

Alan Clifford

I've just posted a ticket (#1144) to Open Camera on Sourceforge

Lots of metadata not showing in Nikon NX studio and the thumbnails not sorting by date.

exiftool shows an unknown orientation.

annurca:bits alan$ exiftool -a -G -orientation mia2l_5821.jpg
[EXIF]          Orientation                    : Unknown (0)

Applying an orientation of 1 using exiftool produces a warning and a repair

annurca:temp alan$ exiftool -orientation#=1 mia2l_5821.jpg
Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - mia2l_5821.jpg

A more significant result for me is that the thumbnails now sort correctly by date in Nikon NX studio and the meta data is showing.

'Phone is a Xiaomi mi A2 lite