Menu

metadata problem

2021-01-29
2023-06-13
  • Alan Clifford

    Alan Clifford - 2021-01-29

    I recently put open camera onto my mi Xiaomi mi a2 lite and noticed that the camera information did not show up when viewing using nikon viewnx-i on my macbook.
    On examination of the metadata with exiftool, the following is shown:

    exiftool -validate -warning -a mia2l_20210129_160622.jpg
    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

     
  • Anonymous

    Anonymous - 2023-06-13

    exiftool -all= -tagsfromfile @ -all:all *.jpg

     
  • Anonymous

    Anonymous - 2023-06-13

    PS.
    If your photo also has a color profile which you want to preserve, execute ...
    exiftool -all= -tagsfromfile @ -all:all -icc_profile *.jpg

    If you actually wanted to delete the metadata, (in this instance, why? <grin>) use ...
    exiftool -all= -tagsfromfile @ -all:all -unsafe *.jpg

    Finally, if you wanted to remove all the 'unsafe' metadata but retain your color profile ...
    exiftool -all= -tagsfromfile @ -all:all -unsafe -icc_profile *.jpg

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.