Please excuse the mess, I'm in the middle of changing domain and hosting providers as well as going from WordPress to Jekyll. --n8henrie, Aug 15, 2016
Bottom Line: EXIFtool is a free command line utility that can remove the GPS data that many modern cameras and phones embed into photos.
Many folks are not aware that they have GPS data embedded into their photos. This is a cool feature supported by many modern cameras and phones; it enables apps like iPhoto to plot maps of where your photos have been taken. However, sometimes people unknowingly post their photos to the internet with this GPS data, which can be a privacy and security concern. (Note that some companies like Facebook responsibly strip this data from the photos when they’re uploaded but many sites like forums or especially your personal blog might not have instituted this practice.)
On a Mac, you can easily check whether or not a given image has GPS data by opening the photo in Preview.app and hitting command + i to open the inspector window (or use Tools -> Show Inspector). Click on the little “i” icon in the Inspector window, and if there is GPS data, you’ll have a GPS tab.
Here’s an example picture I tool while in Corpus Christi: [Download Image]. Open it up in Preview (often the default app to open image files) if you’d like to see for yourself. You should get a window like this:
Notice that you can even use the handy “Locate” button to open a Google Maps window to the exact hotel I was at when I took the picture.
A little while ago I ran across EXIFTool, a command line utility that works on both PC and OSX to manipulate the EXIF metadata embedded into photos. I found it to have really good documentation, and it only took me a few minutes after installing it to figure out that running the Terminal command
works great to strip out the GPS data while preserving the other EXIF information, such as camera type and shutter speed, etc.
To make it even easier, I made a little droplet with Automator this morning (download link below) that runs the following Terminal code:
You should be able to drag and drop images onto the application and it will strip the GPS in bulk and add “_CLEAN” to the end of the filename so you know they’ve been processed. With the current configuration, the new files replace the originals in whatever directory they’re dragged from, so if you decide to use it, please be sure to make a duplicate or backup first (in case there are any problems, I’d hate to have my script corrupt or otherwise destroy your only copy of a prized image). I also have it configured so it maintains the file creation and modification dates, because I hate when something messes that stuff up.
Also note that you’ll still need to install EXIFTool for this to work (available at the link above, or the link included in the .dmg). The droplet just takes the Terminal stuff “out of the picture” (hehe) to make it more user friendly for people unfamiliar or uncomfortable with Terminal.
If you want to give the droplet a shot, I encourage you to test it out with the GPS-data-containing photo I linked above. Once downloaded, open it in Preview and verify that the GPS data is indeed there. Then drag and drop the image file onto the droplet, re-open, and verify that the GPS data is gone. Also note that the rest of the EXIF and modification dates are preserved.
Feel free to open the droplet with Automator and edit anything you like. Big thanks to the EXIFTool dev team for a great utility!