Delete all XMP tags except people & face tags

Started by trymeout, May 06, 2021, 02:35:03 PM

Previous topic - Next topic

trymeout

Is there a way to delete all of the XMP data of a JPG without deleting the people tags and face tags of a file that was added with digikam?

This command will delete all the xmp data but is there a way to exempt face tags and people tags?

exiftool -overwrite_original -xmp:all= .

Thank you all for your help, this forum as been helpful and has generous people willing to lend a hand

StarGeek

See the last sentence under the --TAG option.  You copy the tags you want to keep back into the file with -TagsFromFile @
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

trymeout

I tried these commands, the first done did not seem to do anything and the second command cannot find 'Keywords' command

exiftool -overwrite_original -TagsFromFile @ -xmp:all= .
exiftool -overwrite_original -TagsFromFile Keywords -xmp:all= .

I added the image in the attachment that I would like to learn how to remove all xmp date from but keep the face and people tags.

StarGeek

The line I pointed to from the docs (emphasis mine)
QuoteInstead, individual tags may be recovered using the -tagsFromFile option (eg. -all= -tagsfromfile @ -artist).

So clear, then -TagsFromFile @

It looks like digikam is saving the faces in the MWG regions, so
exiftool -P -overwrite_original -xmp:all= -TagsFromFile @ -XMP-mwg-rs:all /path/to/files/
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype