Offset GPS altitude metadata

Started by Lùrenz, April 13, 2024, 05:19:57 AM

Previous topic - Next topic

Lùrenz

Hi everybody, i would like to ask some advice on how to change some specific data (GPS altitude and altitude reference) in a set of pictures took with my dji drone, if it's possible I would prefer to offset all those values to obtain a quite precise elevation instead of setting the same altitude for all images to prevent the flattening of the entire dataset.

Phil Harvey

For example, to subtract 20.5 meters:

exiftool -gpsaltitude+=-20.5 DIR

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

StarGeek

The relevant part of the documentation under the -TAG[+-^]=[VALUE] option

Quote+= may also be used to increment numerical values (or decrement if VALUE is negative),

Note that to subtract, you have to "add" a negative number as in Phil's example.  That's because -= is a different operation. Directly after the above documentation is

Quoteand -= may be used to conditionally delete or replace a tag
* 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).