Delete everything except GPS information

Started by Mike55, April 02, 2023, 08:57:16 AM

Previous topic - Next topic

Mike55

Hello,
is there an easy way to delete all metadata (also MakerUnknown and Huawei) except GPS information?
Thanks a lot

StarGeek

Try
exiftool -All= -TagsFromFile @ -GPS* /path/to/files/

Using -All= removes all possible metadata, then -TagsFromFile @ -GPS* will copy the GPS data back into the file.

If you're on Mac/Linux, you'll need quotes around the -GPS* part.
* 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).