brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: exiftool -all= strips the metadata from a photo before you share it

Exiftool
~/tips/exiftool-strip

exiftool -all= photo.jpg

Removes GPS position and all other metadata from a photo before you share it.

A photo from a phone can carry the exact GPS position it was taken at. Before I post one in public, I want to know what is hidden in it.

exiftool photo.jpg | grep -i gps
exiftool -all= photo.jpg

The first line shows whether the file has location data. The second removes all metadata. exiftool keeps the original as photo.jpg_original. Add -overwrite_original if you do not want that copy, but then there is no way back.

Caveat: -all= also removes the Orientation tag, so a portrait photo can end up on its side. Check the result before you upload it. Some sites also remove metadata themselves, but I would not rely on that.

Further reading: ExifTool documentation

More Exiftool tips exiftool '-FileName<CreateDate' -d %Y%m%d_%H%M%S%%-c.%%e photos/ All Exiftool tips (2) All topics

Link