Summary

Did you know that pictures you snap with your smartphone may include sensitive information?

In this article you’ll learn how to do just that on Linux with exiftool.

Why Should I Remove Metadata?

Person using the Camera app to take photo with the Google Pixel 8 Pro.

Justin Duino / How-To Geek

They called this new standardExchangable Image File Format (EXIF).

This can, for instance, be used to plan a targetedattack on your phone.

of them away from those who may want to use them for less-than-honest reaasons.

Terminal window showing command to install exiftool on Debian

Jordan Erickson / How-To Geek

So, with this knowledge, we’ll move forward to protect ourselves with Linux and exiftool!

Innocent enough, right?

Even so, there’s still other info I’d rather not share with just anyone.

Terminal window showing command to install exiftool on Fedora

So let’s just strip itallfrom the image.

We’ll use the same command we used above to re-examine the file:

Much better!

There’s not much here now, besides what’s mandatory as per the EXIF spec.

Terminal window showing command to install exiftool on Arch

Posting pictures online has become ubiquitous.

Of course, that doesn’t mean you have to share more than you intended to.

With exiftool in your arsenal, you’re free to protect yourself and others a bit better.

An old, red telephone booth

Jordan Erickson / How-To Geek

Terminal window showing exiftool output with a donor image on Debian

Terminal window showing command to remove EXIF metadata on Debian

Terminal window showing the command to remove all metadata and overwrite original file, not creating a backup

Terminal window showing command to view the nonexistent EXIF metadata on Debian