ExifTool Forum

ExifTool => Newbies => Topic started by: ajwou on September 07, 2022, 04:21:49 AM

Title: Batch apply GPS coordinates from CSV - getting Out of sequence error
Post by: ajwou on September 07, 2022, 04:21:49 AM
Hello,

I am trying to insert/update GPS position of an image coming from an iStar camera. I have used this command (exiftool -csv=gps.csv -gpslatituderef=N -gpslongituderef=W -gpsaltituderef=above .) on a dataset coming from different camera and it worked well. However when trying to apply the same for the iStar dataset I am getting error message - Entries in ExifIFD were out of sequence (see screenshot attached). Please would anyone be able to advise how to fix this issue. Attached is also one of the images and the istargps csv file.
 
Thank you.
Title: Re: Batch apply GPS coordinates from CSV - getting Out of sequence error
Post by: StarGeek on September 07, 2022, 10:32:17 AM
There are a bunch of warnings with that file.  Something did a bad job of editing it.
C:\>exiftool -g1 -a -s -warning -validate Y:\!temp\ccc\e\1-20220901-222158.jpg
---- ExifTool ----
Warning                         : [minor] Odd offset for IFD0 tag 0x0110 Model
Warning                         : [minor] Odd offset for IFD0 tag 0x0132 ModifyDate
Warning                         : Entries in ExifIFD are out of order
Warning                         : [minor] Odd offset for ExifIFD tag 0x829a ExposureTime
Warning                         : Tag ID 0x829a ExposureTime out of sequence in ExifIFD
Warning                         : Tag ID 0x8827 ISO out of sequence in ExifIFD
Warning                         : [minor] Odd offset for ExifIFD tag 0x920a FocalLength
Warning                         : [minor] Odd offset for ExifIFD tag 0x829d FNumber
Warning                         : Tag ID 0x829d FNumber out of sequence in ExifIFD
Warning                         : [minor] Odd offset for ExifIFD tag 0xa404 DigitalZoomRatio
Warning                         : [minor] Odd offset for ExifIFD tag 0x9003 DateTimeOriginal
Warning                         : Tag ID 0x9003 DateTimeOriginal out of sequence in ExifIFD
Warning                         : [minor] Odd offset for ExifIFD tag 0x9004 CreateDate
Warning                         : Tag ID 0xa300 FileSource out of sequence in ExifIFD
Warning                         : Entries in IFD0 are out of order
Warning                         : Duplicate tag 0x8769 ExifOffset in IFD0
Warning                         : ExifIFD pointer references previous ExifIFD directory
Warning                         : [minor] XMP is missing xpacket wrapper
Warning                         : [minor] Boolean value for XMP-GPano:UsePanoramaViewer should be capitalized
Warning                         : Missing required JPEG ExifIFD tag 0x9101 ComponentsConfiguration
Warning                         : Missing required JPEG ExifIFD tag 0xa000 FlashpixVersion
Warning                         : Missing required JPEG ExifIFD tag 0xa002 ExifImageWidth
Warning                         : Missing required JPEG ExifIFD tag 0xa003 ExifImageHeight
Validate                        : 23 Warnings (10 minor)

You can try the command FAQ #20 (https://exiftool.org/faq.html#Q20), but make sure you have backups just in case something breaks.  When I ran that command on your file, it looks like no data was lost, just moved around, which is to be expected.

Output differences at DiffChecker (https://www.diffchecker.com/t2xAKMQI)