4 Replies Latest reply on Jun 28, 2016 6:26 PM by johnrellis

    Lightroom 5 sometimes fails to load EXIF GPS data from .jpg files

    teskeyn

      Before I got Lightroom, I used geoSetter to add GPS data to my .jpg files. Most of these have loaded up into LR without problems but for some of them, Lightroom failed to  import the GPS data. I used exiftool to compare the GPS data in files that loaded OK and ones that did not and noticed that some of the problem files did not have: GPS Map Datum, GPS Date Stamp, GPS Time Stamp. I used exiftool to edit these into the file, Lightroom still failed to load the GPS data.  DOes anyone have any idea why  Lightroom 5 sometimes fails to load EXIF GPS data from .jpg file

       

       

      ======== P3207532.jpg - GPS Data not imported into Lightroom

      GPS Version ID 2.2.0.0

      GPS Latitude Ref North

      GPS Longitude Ref East

      GPS Altitude Ref Above Sea Level

      GPS Date/Time 2015:03:20 02:18:36Z

      GPS Latitude 20 deg 54' 41.68" N

      GPS Longitude 107 deg 0' 5.47" E

      GPS Position 20 deg 54' 41.68" N, 107 deg 0' 5.47" E

       

       

      ======== P3207533.JPG - GPS Data imported OK into Lightroom

      GPS Version ID 2.2.0.0

      GPS Time Stamp 02:22:26

      GPS Map Datum WGS-84

      GPS Date Stamp 2015:03:20

      GPS Date/Time 2015:03:20 02:22:26Z

      GPS Latitude 20 deg 54' 43.41" N

      GPS Latitude Ref North

      GPS Longitude 107 deg 1' 9.10" E

      GPS Longitude Ref East

      GPS Position 20 deg 54' 43.41" N, 107 deg 1' 9.10" E

       

       

      ======== P3207532.edited.jpg  - GPS Data not imported into Lightroom

      GPS Version ID 2.2.0.0

      GPS Latitude Ref North

      GPS Longitude Ref East

      GPS Altitude Ref Above Sea Level

      GPS Time Stamp 02:22:26

      GPS Map Datum WGS-84

      GPS Date Stamp 2015:03:20

      GPS Date/Time 2015:03:20 02:22:26Z

      GPS Latitude 20 deg 54' 41.68" N

      GPS Longitude 107 deg 0' 5.47" E

      GPS Position 20 deg 54' 41.68" N, 107 deg 0' 5.47" E

        • 1. Re: Lightroom 5 sometimes fails to load EXIF GPS data from .jpg files
          johnrellis Most Valuable Participant

          Upload one of the problem files to Dropbox or similar and post the sharing link there.  I'll put the file under the microscope and see what might be going on.

          • 2. Re: Lightroom 5 sometimes fails to load EXIF GPS data from .jpg files
            teskeyn Level 1

            I have posted a zip file at http://www.niallt868.plus.com/LR/LR%20GPS.zip which contains the two .jpg files and a test Lightroom catalogue with the two files showing  GPS recognised on on file but not the other.

             

            Look forward to hearing what you find under the microscope.

             

            Niall

            • 3. Re: Lightroom 5 sometimes fails to load EXIF GPS data from .jpg files
              johnrellis Most Valuable Participant

              I see immediately that P3207532.jpg's coordinates aren't importing into my LR CC 2015.6 either.  Investigating...

              • 4. Re: Lightroom 5 sometimes fails to load EXIF GPS data from .jpg files
                johnrellis Most Valuable Participant

                The issue with P3207532.jpg is that it contains two sets of GPS values, one in the EXIF metadata section and one in the XMP metadata section:

                 

                $ exiftool -a -G P3207532.jpg | grep -i gps
                [EXIF]          GPS Version ID                  : 2.2.0.0
                [EXIF]          GPS Latitude Ref                : North
                [EXIF]          GPS Latitude                    : 20 deg 54' 41.68"
                [EXIF]          GPS Longitude Ref              : East
                [EXIF]          GPS Longitude                  : 107 deg 0' 5.47"
                [EXIF]          GPS Altitude Ref                : Above Sea Level
                [EXIF]          GPS Time Stamp                  : 02:22:26
                [EXIF]          GPS Map Datum                  : WGS-84
                [EXIF]          GPS Date Stamp                  : 2015:03:20
                [XMP]          GPS Date/Time                  : 2015:03:20 02:18:36Z
                [XMP]          GPS Version ID                  : 2.2.0.0
                

                 

                But the XMP section contains an incomplete set of GPS fields. Note that XMP:GPSDateTime specifies a different time than EXIF:GPSTimeStamp. 

                 

                I don't know which of your programs may have created these bogus, incomplete XMP values, but they're confusing LR.  According to the Metadata Working Group spec, to which LR subscribes, LR should prefer the EXIF GPS values, and the bogus XMP values shouldn't confuse it. But LR is preferring the XMP values and then concluding there aren't any GPS coordinates.

                 

                You can work around this bug in LR by doing:

                 

                exiftool -xmp:gpsdatetime= -xmp:gpsversionid= file