From e05c6828c572cabf5737f21934b21671a3e23729 Mon Sep 17 00:00:00 2001 From: Ulysses <71786368+ulysseskan@users.noreply.github.com> Date: Sun, 20 Nov 2022 02:09:37 -0800 Subject: [PATCH] exiftool: Add "-gps*=" removal example (#9522) * exiftool: Add "-gps*=" removal example A common use of exiftool is removing location data from photos. One may wish to preserve most EXIF data (ex. rotation, date/time taken, etc.) but remove private location data. This example accomplishes this common task. The proposed example comes from exiftool's author, Phil Harvey: https://exiftool.org/forum/index.php?topic=6037.msg29731#msg29731 This example works to not only remove GPS data from EXIF but also from Adobe's XMP tags. Tested with JPEG and HEIC photos using exiftool 12.50. --- pages/common/exiftool.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/exiftool.md b/pages/common/exiftool.md index c21326dd94..e5f28cd8a6 100644 --- a/pages/common/exiftool.md +++ b/pages/common/exiftool.md @@ -11,6 +11,10 @@ `exiftool -All= {{file1 file2 ...}}` +- Remove GPS EXIF metadata from given image files: + +`exiftool "-gps*=" {{path/to/image1 path/to/image2 ...}}` + - Remove all EXIF metadata from the given image files, then re-add metadata for color and orientation: `exiftool -All= -tagsfromfile @ -colorspacetags -orientation {{image1 image2 ...}}`