How to remove all Keywords

Started by Click-Clack, November 05, 2011, 03:14:10 AM

Previous topic - Next topic

Click-Clack

Hi,
For a large amount of photos, I would like to replace all keywords with others.
I've no problem to create a Windows .bat script to do this.

But my concenrn is about removing all existings keywords before.

Is there a command to erase all Keywords ?
Something like exiftool -Keywords-=all *.jpg ...

Thanks for your help!

BogdanH

Hi,

You're on the right track:
exiftool -keywords= *.jpg
That is, you shouldn't use minus sign.

Bogdan

Click-Clack

Hum...
The syntax works well when used as is.

But if I use this syntax in one command which remove and add the keywords, it doesn't work...

Here's an example :
exiftool -overwrite_original -Keywords= -Keywords+="Alsaphot" -Keywords+="France" -Keywords+="6x6cm" -Keywords+="Imageur" -charset Latin -Caption-abstract=1164 "-DateTimeOriginal=1954:01:01 00:00:00" .\2011/10/15/20111015185532-687e3c51.jpg

Isn't it possible to remove all keywords and add the right ones in one command... ?

Phil Harvey

This command will remove existing keywords and write the new ones (read FAQ number 17 for an explanation):

exiftool -overwrite_original -Keywords="Alsaphot" -Keywords="France" -Keywords="6x6cm" -Keywords="Imageur" -charset Latin -Caption-abstract=1164 "-DateTimeOriginal=1954:01:01 00:00:00" .\2011/10/15/20111015185532-687e3c51.jpg

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Click-Clack