aboutsummaryrefslogtreecommitdiff
path: root/blog/2022-02-17-exiftool.org
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-12-02 23:27:35 -0600
committerChristian Cleberg <hello@cleberg.net>2023-12-02 23:27:35 -0600
commit3d4da5ac6000a4871c5caa80d1e61f2782da3069 (patch)
tree29f36b50823d22f4c7df0a3db3ede83192ae649f /blog/2022-02-17-exiftool.org
parentdcf0186e16b6ac8f0e00a3aeb9734421ce548177 (diff)
downloadcleberg.net-3d4da5ac6000a4871c5caa80d1e61f2782da3069.tar.gz
cleberg.net-3d4da5ac6000a4871c5caa80d1e61f2782da3069.tar.bz2
cleberg.net-3d4da5ac6000a4871c5caa80d1e61f2782da3069.zip
feat: finish converting md to org
Diffstat (limited to 'blog/2022-02-17-exiftool.org')
-rw-r--r--blog/2022-02-17-exiftool.org110
1 files changed, 57 insertions, 53 deletions
diff --git a/blog/2022-02-17-exiftool.org b/blog/2022-02-17-exiftool.org
index acb2f6b..790e1a1 100644
--- a/blog/2022-02-17-exiftool.org
+++ b/blog/2022-02-17-exiftool.org
@@ -1,63 +1,67 @@
-+++
-date = 2022-02-17
-title = "Stripping Image Metadata with exiftool"
-description = "Become a h@ck3r (i.e., just protect your privacy) by using the exiftool command line package to strip metadata from images."
-draft = false
-+++
-
-## 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
+#+title: Stripping Image Metadata with exiftool
+#+date: 2022-02-17
+
+** Why Strip Metadata?
+:PROPERTIES:
+:CUSTOM_ID: why-strip-metadata
+:END:
+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=
+:PROPERTIES:
+:CUSTOM_ID: installing-exiftool
+:END:
+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:
+
+#+begin_src sh
sudo apt install exiftool
-```
+#+end_src
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`).
+** Recursively Strip Data
+:PROPERTIES:
+:CUSTOM_ID: recursively-strip-data
+:END:
+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:
+The following command is incredibly useful and can be modified to
+include any image extensions that =exiftool= supports:
-```sh
+#+begin_src sh
exiftool -r -all= -ext jpg -ext png /path/to/directory/
-```
+#+end_src
-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.
+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.
-![exiftool results](https://img.cleberg.net/blog/20220217-stripping-metadata-with-exiftool/exiftool.png)
+#+caption: exiftool results
+[[https://img.cleberg.net/blog/20220217-stripping-metadata-with-exiftool/exiftool.png]]