diff options
author | Christian Cleberg <hello@cleberg.net> | 2024-03-29 01:42:38 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2024-03-29 01:42:38 -0500 |
commit | 00b2726e0561f174393ae600f0f11adb8afebaab (patch) | |
tree | a4733d553ce68f64277ffa3a52f800dc58ff72de /content/blog/2022-02-17-exiftool.md | |
parent | 8ba3d90a0f3db7e5ed29e25ff6d0c1b557ed3ca0 (diff) | |
parent | 41bd0ad58e44244fe67cb36e066d4bb68738516f (diff) | |
download | cleberg.net-00b2726e0561f174393ae600f0f11adb8afebaab.tar.gz cleberg.net-00b2726e0561f174393ae600f0f11adb8afebaab.tar.bz2 cleberg.net-00b2726e0561f174393ae600f0f11adb8afebaab.zip |
merge org branch into main
Diffstat (limited to 'content/blog/2022-02-17-exiftool.md')
-rw-r--r-- | content/blog/2022-02-17-exiftool.md | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/content/blog/2022-02-17-exiftool.md b/content/blog/2022-02-17-exiftool.md deleted file mode 100644 index 9948b2e..0000000 --- a/content/blog/2022-02-17-exiftool.md +++ /dev/null @@ -1,67 +0,0 @@ -+++ -date = 2022-02-17 -title = "Stripping Image Metadata with exiftool" -description = "A simple guide to remove exif data with exiftool." -+++ - -## Why Strip Metadata? - -Okay, so you want to strip metadata from your photos. Perhaps you take -pictures of very rare birds, and the location metadata is a gold mine -for poachers, or perhaps you're just privacy-oriented like me and -prefer to strip metadata from publicly-available images. - -There are various components of image metadata that you may want to -delete before releasing a photo to the public. Here's an incomplete -list of things I could easily see just by inspecting a photo on my -laptop: - -- Location (Latitude & Longitude) -- Dimensions -- Device Make & Model -- Color Space -- Color Profile -- Focal Length -- Alpha Channel -- Red Eye -- Metering Mode -- F Number - -Regardless of your reasoning, I'm going to explain how I used the -`exiftool` package in Linux to automatically strip metadata -from all images in a directory (+ subdirectories). - -## Installing `exiftool` - -First things first: we need to install the tool. I'm running Debian 11 -on my server (Ubuntu will work the same), so the command is as simple -as: - -```sh -sudo apt install exiftool -``` - -There are different tools that can accomplish the same thing across -distributions, but I really only care to test out this one package. - -## Recursively Strip Data - -I actually use this tool extensively to strip any photos uploaded to the -website that serves all the images for my blog -(`img.cleberg.net`). - -The following command is incredibly useful and can be modified to -include any image extensions that `exiftool` supports: - -```sh -exiftool -r -all= -ext jpg -ext png /path/to/directory/ -``` - -See below for the results of my most recent usage of -`exiftool` after I uploaded the image for this blog post. You -can see that the command will let you know how many directories were -scanned, how many images were updated, and how many images were -unchanged. - - |