Error: Truncated GPS directory

Started by mgryszko, September 21, 2010, 04:07:47 AM

Previous topic - Next topic

mgryszko

When I try to write GPS related information using GeoSetter, I get this error for 90% of my fotos:


Warning: Bad PreviewIFD offset for tag 0x0 - C:/Users/mgryszko/Pictures/2010/2010-roweremdoPolski/DSC_0003.JPG
Error: Truncated GPS directory - C:/Users/mgryszko/Pictures/2010/2010-roweremdoPolski/DSC_0003.JPG


What does this error message want to say exactly? Is this an issue of exiftool, GeoSetter or my camera? Is there a workaround?

Thanks in advance for any hint.

Exiftool command line is as follows:

C:\Users\mgryszko\AppData\Roaming\GeoSetter\tools\exiftool.exe  -@ "C:\Users\mgryszko\AppData\Local\Temp\et04E4DC82.arg" "C:\Users\mgryszko\Pictures\2010\2010-roweremdoPolski\DSC_0003.JPG"

-m
-EXIF:GPSSatellites=0
-EXIF:GPSLatitude=40.41170656
-EXIF:GPSLongitude=-3.77955537
-EXIF:GPSLatitudeRef=N
-EXIF:GPSLongitudeRef=W
-EXIF:GPSMapDatum=WGS-84
-EXIF:GPSVersionID=2.2.0.0
-EXIF:GPSAltitude=674.982829
-EXIF:GPSAltitudeRef=Above Sea Level
-EXIF:GPSDateStamp=2010:08:24
-EXIF:GPSTimeStamp=09:14:24
-XMP:GPSLatitude=40.41170656
-XMP:GPSLongitude=-3.77955537
-XMP:GPSVersionID=2.2.0.0
-XMP:GPSMapDatum=WGS-84
-XMP:GPSAltitude=674.982829
-XMP:GPSAltitudeRef=Above Sea Level
-XMP:GPSDateTime=2010-08-24T09:14:24Z
-XMP:Creator=
-XMP:AuthorsPosition=
-XMP:CountryCode=
-XMP:Country=
-XMP:State=
-XMP:City=
-XMP:Location=
-XMP:Artist=
-XMP:Description=
-XMP:Instructions=
-XMP:Title=
-XMP:Headline=
-XMP:Credit=
-XMP:Rights=
-XMP:CaptionWriter=
-XMP:Source=
-XMP:Category=
-XMP:DateCreated=2010-08-24T11:14:24Z+00:00
-xmp:rating=
-xmp:ratingpercent=
-XMP:CreatorAddress=
-XMP:CreatorPostalCode=
-XMP:CreatorCity=
-XMP:CreatorRegion=
-XMP:CreatorCountry=
-XMP:CreatorWorkTelephone=
-XMP:CreatorWorkEmail=
-XMP:CreatorWorkURL=


Exiftool version: 8.31
GeoSetter version: 3.3.60
Camera model: Nikon D90

Phil Harvey

Quote from: mgryszko on September 21, 2010, 04:07:47 AM
Is this an issue of exiftool, GeoSetter or my camera?

I would say none of the above.  The problem is likely in the software you used to edit the image before running geosetter/exiftool.

QuoteIs there a workaround?

There are various work arounds, but the normal fix is explained in FAQ number 20.  I can give you more details about the exact problem if you post a sample or mail it to me (philharvey66 at gmail.com).

- 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 ($).

mgryszko

Thanks Phil,

FAQ nÂș 20 worked for me. I could fix my photos with the command line from the answer.

BTW, I used Picasa 3.8 for editing.

Best,

Marcin

Phil Harvey

Quote from: mgryszko on September 23, 2010, 12:45:41 PM
BTW, I used Picasa 3.8 for editing.

Ah, yes.  Picasa has a long history of corrupting metadata. :(

- 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 ($).