How to scrub sensitive photo metadata using ExifTool
source link: https://kevinchen.co/blog/scrub-sensitive-photo-exif-metadata-with-exiftool/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How to scrub sensitive photo metadata using ExifTool
Protect your privacy while retaining image settings
22 Jan 2017
Modern cameras store a lot of information in each photo: important stuff like the shutter speed and camera model, but also less well known things like your location and the serial number of your lens.
When I made the photo gallery on this site, I wanted to remove metadata that identifies specific devices I own or people I know. But I didn’t like the idea of removing the capture settings too, since those might be useful for other photographers. (This is also why I don’t minify this site.)
I’m now using the following ExifTool command on all photos before I share them. It’s in my .bashrc
to make things more convenient:
alias exifscrub_destructive="exiftool -overwrite_original -LensIDNumber= -SerialNumber= -LensSerialNumber= -ShutterCount= -Keywords= -Subject= -ThumbnailImage= -PhotoshopThumbnail= -XMP:All= "
# usage: exifscrub_destructive *.jpg
Here’s what each option means:
-overwrite_original
: Modify the original photo instead of creating a copy.-LensIDNumber=
(Nikon),-LensSerialNumber=
(Fujifilm), and-SerialNumber=
: Remove lens and camera body serial numbers.-ShutterCount=
: This is the number of photos taken on your camera so far. Since it increases monotonically and is highly predictable, it might be used to deanonymize cameras even without the serial number.-Keywords= -Subject=
: Some programs use these fields to store the names of people you’ve tagged in the photo.-ThumbnailImage= -PhotoshopThumbnail=
: To save space, remove thumbnail images.-XMP:All=
: Lightroom uses XMP to store the edits you’ve applied and the photo’s document ID. I wasn’t sure whether this is sensitive information, so I am removing all XMP stuff to be safe. Also it shaves another few kilobytes off the file size.
These options worked on photos from my Nikon D5100. Your camera might store things differently, so please let me know if I missed anything!
Update on 30 May 2017: Add -LensSerialNumber=
argument.
Recommend
-
4
图片的 exif 查看和设置工具 exiftool 作者: 张志强 ...
-
3
Some accused in Capitol riot reportedly tried to scrub info from their phones and social media The AP reports dozens of the January 6th defendants tried to erase images, videos, a...
-
5
How to View, Edit, and Add Metadata to a Photo By Matthew Wallaker Published 13 hours ago Metadata is essential if you want t...
-
4
These three Photo editor apps are collecting your sensitive information
-
4
Media Bar lets you scrub your music or podcasts by swiping on your status barBringing additional functionalities on our devices through third-party apps is something Android enthusiasts have been doing for a while. Power users are al...
-
41
Gitlab-Exiftool-RCE RCE Exploit for Gitlab < 13.10.3 GitLab Workhorse will pass any file to ExifTool. The current bug is in the DjVu module of ExifTool. Anyone with the ability to upload an image that goes thr...
-
6
Netflix now lets you scrub your Continue Watching carousel clean, right on your TV By Daniel Allen Published 4 hours ago ...
-
3
go-scrub A scrubbing utility in Golang to hide sensitive fields from a struct prior to logging. Since the scrubbing utility function needs to work on any Golang struct where its fields and members are known only at runtime, we...
-
5
Overview Exiftool versions < 12.38 are vulnerable to Command Injection through a crafted filename. If the filename passed to exiftool ends with a pipe character | and exists on the filesystem, then the file will be treated...
-
2
Use ExifTool to remove private data in images I’m a huge fan of ExifTool for manipulating EXIF data in images as it really is...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK