News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

Remove all keywords

Started by Lysvik, August 07, 2011, 06:08:52 AM

Previous topic - Next topic

Lysvik

I tried some hours with exiftool to get this job done but I could not get it to work. Files are originally managed with Adobe Brigde where each PEF (raw imagefile) has his own xmp file.

Target is to clean all keywords from the PEF files before importing the PEF files into Aperture.

Some of the commands I tried so far:

exiftool -overwrite_original -IPTC:Keywords=Kroatie *.PEF

This one add Kroatie but the old keywords are still there

exiftool -overwrite_original -keywords=Kroatie *.PEF

The same result as before, the old keywords are still there.

Can someone advise witch code I should use?


Phil Harvey

Try using -mwg:keywords=Kroatie to see if this helps.

See the MWG tag name documentation for more information.

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

Lysvik

Quote from: Phil Harvey on August 07, 2011, 07:06:44 AM
Try using -mwg:keywords=Kroatie to see if this helps.

See the MWG tag name documentation for more information.

- Phil

Thansk Phil, this code works, it wiped out most (strangely not all) keywords.

This is the code I used:

exiftool -r -overwrite_original_in_place -mwg:keywords= *.PEF *.jpeg *.jpg *.psd

Unfortunately it runs with a limitation, because the parameter -r is not running the command in the subdirectories. Running the command apart on each a folder works, so it does the job. If you have a solution for this -r issue, please advise.



BogdanH

I'm not sure, but when -r is used, then path to files should be specified. Try something like:
exiftool -r -overwrite_original -mwg:keywords= -ext pef -ext jpg -ext psd "c:\my Files\testing"

Bogdan

Phil Harvey

Bogdan gives good advice. :)  You must specify a directory name for the -r option to be meaningful.  If the files are in the current directory, then a simple "." will suffice.  And the -ext option controls what files are processed in the directory, otherwise by default all writable file types are processed.

Concerning the keywords that aren't deleted, I can tell you exactly what is going on if you send me a sample image (philharvey66 at gmail.com).

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