ExifTool Forum

ExifTool => Newbies => Topic started by: Mike55 on April 02, 2023, 08:57:16 AM

Title: Delete everything except GPS information
Post by: Mike55 on April 02, 2023, 08:57:16 AM
Hello,
is there an easy way to delete all metadata (also MakerUnknown and Huawei) except GPS information?
Thanks a lot
Title: Re: Delete everything except GPS information
Post by: StarGeek on April 02, 2023, 11:06:02 AM
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.
Title: Re: Delete everything except GPS information
Post by: Mike55 on April 02, 2023, 11:25:21 AM
Perfect, thank you!