ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: dronesurveyor on April 18, 2025, 02:26:22 AM

Title: Defining Output Directory Help
Post by: dronesurveyor on April 18, 2025, 02:26:22 AM
Hi there

What is the correct syntax to use if I wish to put all the geotagged images in a different folder on my D drive?

This is my current syntax:

exiftool -csv="E:\Sep 24\Sep 24 C-1\Output\WGS84.csv" .

Title: Re: Defining Output Directory Help
Post by: Phil Harvey on April 18, 2025, 09:51:14 AM
To move all photos with GPS coordinates from directory SRCDIR to directory DSTDIR:

exiftool -if "$gpslatitude" -directory="DSTDIR" SRCDIR

- Phil
Title: Re: Defining Output Directory Help
Post by: StarGeek on April 18, 2025, 10:33:55 AM
Phil's command is the one to use if you are just looking to move any GPS tagged files to another directory, but your use of the -csv option (https://exiftool.org/exiftool_pod.html#csv-CSVFILE) as an example makes me wonder if you want something more complicated, as the -csv option usually isn't used when moving files.

Just to verify, you just want to move the files and not something like you want to embed data from a CSV file and move any of the files that were edited only with GPS coordinates.
Title: Re: Defining Output Directory Help
Post by: dronesurveyor on April 20, 2025, 03:23:04 AM
I am geotagging a directory of 4000 images using the geotags contained in the csv file. Both exiftool and the csv file are in the same folder as the images. I would rather have them geotagged and moved to a new directory, rather than delete all of the .original files after completion.
Title: Re: Defining Output Directory Help
Post by: StarGeek on April 20, 2025, 11:17:59 AM
Quote from: dronesurveyor on April 20, 2025, 03:23:04 AMrather than delete all of the .original files after completion.

You can add the -overwrite_original option (https://exiftool.org/exiftool_pod.html#overwrite_original) to suppress the creation of backup files.