How to Sanitize EXIF Data From Your Pictures1 min read

Linux Exif Data and Personal Security

When you take pictures, be it with your cell phone or with your digital camera, the software adds data to the pictures. This data is called the Exif data. If your camera supports it, and if you have it enabled, it will encode all sorts of private data along with your image data.

Needless to say, this is a potential privacy nightmare and people have not only been doxxed this way but people have ended up in jail because of leaving the data in their photos. Now, frankly, if you’re taking images that’d get you tossed into jail, I’m pretty much okay with that. For the rest of you, read on…

First, install exiftool from your default repositories. If you’re using apt, it’s quite simple and almost certainly in your default repositories.

Now, let’s make it work. Open your .bash_aliases file, assuming you have one, and add the following line:

Now, reload your aliases with:

To use this, open the directory that houses the photos you want to share with your terminal and just enter:

That will clean all your .png and .jpg files. That’s also enough information for you to customize it for your system, should you have a different configuration than I.

Get PDFPrint This
About Me: I'm just some retired dude with a little bit more free time on my hands. If you want to support the site, why not help yourself out too by ordering some inexpensive web hosting so that you can start your own site?


Smash a Button
[Total: 0 Average: 0]
Total Page Visits: 73 - Today Page Visits: 1

Author: Admin

I'm a retired mathematician that has a fondness for Linux and many (not all) things tech. I'm an old-school geek that just enjoys the life he has. I live in a very, very rural area of Maine.

Leave a Reply

Your email address will not be published. Required fields are marked *