Overview
In creating this website, I wanted to use photos in the blog posts. However, from a privacy point of view, I wanted to strip some of the EXIF data from the images to clear things like GPS coordinates etc.
Installing EXIFTool
I am using Pop!_OS, but these instructions should work for any Ubuntu/Linux Mint/Debian base etc OS.
Check out the EXIFTool documentation for more information.
- Install EXIFTool:
|
|
Using EXIFTool
Read all the EXIF data from an image:
|
|
Remove all metadata from an image:
|
|
You can apply this to multiple files, e.g.
exiftool -all= *
orexiftool -all= *.png
Remove only GPS metadata:
Once you have looked through the metadata tags that are read from the initial read command, you can remove specific ones:
|
|
The
-a
flag removes the same tag from different groups