Removing EXIF Data 📷

When I upload images for my gemlog, I like them to be well-compressed with a maximum dimension of 800 pixels on the long side.

Also, I like all the identifying EXIF information (including the location) to be stripped.

So I wrote a shell script to do the dirty work, with a dependency on ImageMagick.

ImageMagick's website

Here are some examples:

And here's the source. Note that if you have ImageMagick installed and the `magick` command isn't found, change it to `convert` (which is now deprecated).

Don't forget to `chmod 700 stripexif` and put it somewhere in your `PATH`. As a side note, I personally use the directory `~/.local/bin` for things like that.

Happy scripting!

───────────

Comments? Mail beej@beej.us.

Back to Beej's Gemlog

Back to Beej's Place