Geolocation of all files in a folder

Started by nquental, May 17, 2024, 09:35:41 PM

Previous topic - Next topic

nquental

Hello!
Is it possible to write geolocation data (country, city) for all files at one in a folder and subfolders? It seems  "exiftool -api geolocation" is only applicable to a specific file each time?
Thanks in advance,
Nuno

StarGeek

Quote from: nquental on May 17, 2024, 09:35:41 PMIt seems  "exiftool -api geolocation" is only applicable to a specific file each time?

No, you can mix as many directories and individual files on the command line as you want, limited only top the max length of the command line (a bit over 8,000 characters on Windows, something like 100k characters on Linux/Mac).

For example
exiftool -ISO C:\pictures\Wedding D:\MorePictures\SingleFile.jpg E:\Another\Picture\Directory\

Add the -r (-recurse) option to recurse into subdirectories.  For recursion, see also Common Mistake #2.
* 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).