Thread

Posted on Tue Jul 1 14:31:10 2008 by mariusn
How to delete EXIF data except...
Hi! I wanted to remove and add some exif data to some of my photos and I have found ExifTool. I've read the documentation on the website, but I have a problem... I want to remove all the EXIF data from my photos, except the fnumber (aperture), focal length and exposure time (shutter speed) and add a copyright information. I also want to apply this command to all my images at once! So I got stuck when I wanted to exclude the fnumber, shutterspeed and focallenght info... and the copyright information. Can someone please show me the exact command I have to use in order to remove all the information from the photos, EXCEPT the fnumber (aperture), focal length and exposure time (shutter speed) and also to add copyright info with my name. Thank you!
Direct Responses: 8214 | Write a response
Posted on Wed Jul 2 14:30:30 2008 by exiftool in response to 8208
Re: How to delete EXIF data except...
The exclude (--TAG) syntax can not be used to exclude individual tags from deletion (see the Note below):

--TAG Exclude specified tag from extracted information. Same as the -x option. May also be used following a -TagsFromFile option to exclude tags from being copied, or to exclude groups from being deleted when deleting all information (ie. "-all= --exif:all" deletes all but EXIF information). Note that this will not exclude individual tags from a group delete. Instead, the tags must be recovered using the -TagsFromFile option.

So your command should look like this:

exiftool -exif:all= -tagsfromfile @ -exif:fnumber -exif:focallength -exif:exposuretime -exif:copyright="text here" -r DIR

Note that this will preserve all original images by adding "_original" to their names. If you already have backups, you can add -overwrite_original to the command line.

- Phil
Write a response