How can I geotag images with location data in a CSV file?

Started by Wissem, July 12, 2021, 09:19:26 AM

Previous topic - Next topic

Wissem

I have a few folders of .JPG images that I need to geo-tag
I have a CSV file of the image filenames and their lat/longs

t tried to use these two commands but with no result

ExifTool -csv="/path/to/csvfile.csv" /directory/path/

ExifTool "-GPS:all<XMP-exif:all" "-GPS:GPSLongitudeRef<Composite:GPSLongitudeRef" "-GPS:GPSLatitudeRef<Composite:GPSLatitudeRef"  /directory/path/

Please help me

Thanks.

StarGeek

The first command would work, but if your second image is correct, then the "SourceFile" column in your CSV is incorrect.  You give the "Sourcefile" in your CSV as
C:\Users\wissem\Desktop\Ooredoo Project\Kasserine_Ooredoo\Photos Kasserine\Photos Sans GPS_Kasserine\132108.JPG
but your second image has a path of
C:/Photos Sans GPS_Kasserine/132108.JPG

The paths have to match, either as absolute paths or relative paths.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Wissem

Thank you !

it works perfectly  :D :D :D :D