1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 14:15:44 +02:00

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.
This commit is contained in:
Ulysses 2022-11-20 02:09:37 -08:00 committed by GitHub
parent 7d87482449
commit e05c6828c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,10 @@
`exiftool -All= {{file1 file2 ...}}` `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: - Remove all EXIF metadata from the given image files, then re-add metadata for color and orientation:
`exiftool -All= -tagsfromfile @ -colorspacetags -orientation {{image1 image2 ...}}` `exiftool -All= -tagsfromfile @ -colorspacetags -orientation {{image1 image2 ...}}`