Unexpected results with ExifTool v. 5.65

Started by Archive, May 12, 2010, 08:53:51 AM

Previous topic - Next topic

Archive

[Originally posted by globaleyes on 2005-10-21 05:30:27-07]

I have encountered unexpected results with ExifTool. On some files the
GPS fields are corrupted when accessed via ExifTool, even though they are
correct when accessed through Photoshop's Get Info command. But other files are
read correctly by ExifTool.

I am enclosing below portions of the output of the .xmp files output by
Photoshop, compared with the output generated by invoking exiftool with the -S
option.

File one -- corrupted GPS coordinates when accessed via ExifTool

Code:
Exerpt of xmp file generated by Photoshop File Info command

  <exif:GPSVersionID>2.0.0.0</exif:GPSVersionID>
  <exif:GPSLatitude>22,12,30N</exif:GPSLatitude>      <-- correct
  <exif:GPSLongitude>159,35,49W</exif:GPSLongitude>   <-- correct
  <exif:GPSAltitudeRef>0</exif:GPSAltitudeRef>
  <exif:GPSAltitude>49/1</exif:GPSAltitude>

Exerpt of exif tool dump of file one

ExifToolVersion: 5.65
GPSVersionID: 2.0.0.0
GPSLatitudeRef: North
GPSLongitudeRef: West
GPSLatitude: 37 deg 30' 4.00" N     <--- wrong
GPSLongitude: 37 deg 30' 4.00" E    <--- wrong
GPSAltitudeRef: Above Sea Level
GPSAltitude: 49
GPSPosition: 37 deg 30' 4.00" N, 37 deg 30' 4.00" W     <--- wrong

Code:
File two -- correct GPS coordinates

Exerpt of xmp file generated by photoshop File Info command

  <exif:GPSVersionID>2.0.0.0</exif:GPSVersionID>
  <exif:GPSLatitude>22,4,47N</exif:GPSLatitude>      <-- correct
  <exif:GPSLongitude>159,18,47W</exif:GPSLongitude>  <-- correct

Exerpt of the exif tool dump of file two

ExifToolVersion: 5.65
GPSVersionID: 2.0.0.0
GPSLatitudeRef: North
GPSLatitude: 22 deg 4' 47.19"      <-- correct
GPSLongitudeRef: West
GPSLongitude: 159 deg 18' 47.94"   <-- correct
GPSPosition: 22 deg 4' 47.19" N, 159 deg 18' 47.94" W   <-- correct

I really don't know why one file is read incorrectly.  I didn't include the entire files here for brevity but I can supply them.

Archive

[Originally posted by exiftool on 2005-10-21 11:44:36-07]

You are correct.  Thanks for pointing this out.  A bug was introduced in version 5.62 which wasn't caught until now.  You can fix this in your local copy by changing the following line in the ToDegrees() subroutine at the top of lib/Image/ExifTool/XMP.pm:from

Code:
   Image::ExifTool::GPS::ToDegrees($_[1], 1);        # <-- the original line
    Image::ExifTool::GPS::ToDegrees($_[0], 1);        # <-- this should fix the problem

This will be fixed in the next release, which will be 5.70 in a few days or so.  Sorry for any inconvenience this may have caused.