Image-ExifTool - Re: How to delete EXIF data except...

Posted on Wed Jul 2 14:30:30 2008 by exiftool in response to 8208 (See the whole thread of 2)
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