
Update on : Add -LensSerialNumber= argument. Your camera might store things differently, so please let me know if I missed anything! These options worked on photos from my Nikon D5100. Also it shaves another few kilobytes off the file size. I wasn’t sure whether this is sensitive information, so I am removing all XMP stuff to be safe.

-Keywords= -Subject=: Some programs use these fields to store the names of people you’ve tagged in the photo.Since it increases monotonically and is highly predictable, it might be used to deanonymize cameras even without the serial number. -ShutterCount=: This is the number of photos taken on your camera so far.This command will remove all supported tags from all supported file types in the. -LensIDNumber= (Nikon), -LensSerialNumber= (Fujifilm), and -SerialNumber=: Remove lens and camera body serial numbers. You can do this easily with ExifTool: exiftool -all -overwriteoriginal -r.IMAGETITLE (exiftool -s3 -iptc:ObjectName '1') The IPTC property.

-overwrite_original: Modify the original photo instead of creating a copy. Firstly, we used ExifTool to find the current values of the three properties I cared about.Alias exifscrub_destructive = "exiftool -overwrite_original -LensIDNumber= -SerialNumber= -LensSerialNumber= -ShutterCount= -Keywords= -Subject= -ThumbnailImage= -PhotoshopThumbnail= -XMP:All= " # usage: exifscrub_destructive *.jpg
