ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Click-Clack on November 05, 2011, 03:14:10 AM

Title: How to remove all Keywords
Post by: Click-Clack on November 05, 2011, 03:14:10 AM
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!
Title: Re: How to remove all Keywords
Post by: BogdanH on November 05, 2011, 03:28:47 AM
Hi,

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

Bogdan
Title: Re: How to remove all Keywords
Post by: Click-Clack on November 05, 2011, 03:49:06 AM
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... ?
Title: Re: How to remove all Keywords
Post by: Phil Harvey on November 05, 2011, 07:26:28 AM
This command will remove existing keywords and write the new ones (read FAQ number 17 (https://exiftool.org/faq.html#Q17) 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
Title: Re: How to remove all Keywords
Post by: Click-Clack on November 05, 2011, 09:02:42 AM
OK !

Many thanks for your help !