ExifTool Forum

ExifTool => Newbies => Topic started by: Like2Hike on March 07, 2015, 11:28:54 AM

Title: Add GPS Coordinates to EXIF
Post by: Like2Hike on March 07, 2015, 11:28:54 AM
Haven't earned my EXIFTool wings . . . yet.

So I have 100's of photos with no EXIF data, NONE. I have them in an Excel SS with file name and Lat, Long. I want to add just the coordinates so I can view the photos, geo-referenced on the map, in my Garmin GPS. I know it works because I used EXIF Pilot to manually add coordinates to a pair of images and viewed them in my handheld GPS.

I read in the FAQ that the import csv and export csv have the same format. Exported the 2 images to a csv and got 35 columns of data, most unrelated to coordinates. When I try to import a csv file I consistently get: 1 dir scanned, 0 image files read. This suggests Exiftool liked the command syntax but not the csv file.

Do I need 35 columns of input data? Some of which I don't know, thumbnail size? Does column order matter, other than SourceFile? I've attached my csv import file, may help. Anything jump out to try?

Going through the website I'm amazed what Exiftool will do, I'm anxious to get over the Newbie hump.

Thank you
Title: Re: Add GPS Coordinates to EXIF
Post by: Phil Harvey on March 07, 2015, 03:31:38 PM
You can output as much or little as you want by specifying the tags when you generate the CSV file.  But it sounds like you want a CSV with only these columns:

SourceFile,GPSLatitude,GPSLongitude

If you can generate this file from your spreadsheet, then ExifTool should be able to read it

- Phil
Title: Re: Add GPS Coordinates to EXIF
Post by: Like2Hike on March 07, 2015, 06:01:39 PM
Sounds simple enough, but it didn't work.

Here's my command line:
Quote
M:\>exiftool -csv="M:\Test\SanJuan.csv" "M:\Test\Images"
    1 directories scanned
    0 image files read
It took ~10 sec for the message to appear, so exiftool was chewing on something. The folder "Images" had no image files with EXIF geotags. I've attached the csv file. The source file path is valid, paste into a browser and up pops the image.

Any ideas?

Thanks for the reply.
Title: Re: Add GPS Coordinates to EXIF
Post by: Phil Harvey on March 07, 2015, 07:07:07 PM
Your command specifies "M:\Test\Images" as the directory, but none of the SourceFile lines in your CSV specify files in this directory.

Also, if there weren't any other error messages, then I would say that M:\Test\Images was empty (or at least didn't contain any images).  ExifTool will take a while unpacking the temporary files the first time it is run.  After this, it should return quickly when running on an empty directory.

- Phil
Title: Re: Add GPS Coordinates to EXIF
Post by: Like2Hike on March 07, 2015, 07:26:57 PM
Quote from: Phil Harvey on March 07, 2015, 07:07:07 PM
Your command specifies "M:\Test\Images" as the directory, but none of the SourceFile lines in your CSV specify files in this directory.

Oh, I thought the second argument was the output path. Since SourceFile gives an absolute path to each image, why is the second argument even needed? I got the syntax from the FAQ on Import, #26.

Apparently this worked, 10 images updated.

Thanks for the help.

Title: Re: Add GPS Coordinates to EXIF
Post by: Phil Harvey on March 07, 2015, 08:13:26 PM
As with all ExifTool commands, you specify the file on the command line.  I can see how this is confusing in the case of the CSV file, but one advantage is that you can read in an entire CSV database yet still specify which of the files you want to change.

Glad it works now.

- Phil