Eliminating XMP blocks

Started by frereroy, April 19, 2017, 03:51:40 PM

Previous topic - Next topic

frereroy

I am trying to eliminate 2 tags from XMP that were filled with a "bizarre" character.

exiftool -xmp-expressionmedia:all= FileOrDir

takes care of the following:

<rdf:Description rdf:about=""
            xmlns:expressionmedia="http://ns.microsoft.com/expressionmedia/1.0/">
         <expressionmedia:People>
            <rdf:Bag>
               <rdf:li>☀orthodoxe</rdf:li>
            </rdf:Bag>
         </expressionmedia:People>

But this one I cannot remove using the following:

exiftool -xmp-Iptc4xmpExt= FileOrDir

<rdf:Description rdf:about=""
            xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/">
         <Iptc4xmpExt:PersonInImage>
            <rdf:Bag>
               <rdf:li>☀orthodoxe</rdf:li>
            </rdf:Bag>
         </Iptc4xmpExt:PersonInImage>
      </rdf:Description>
      <rdf:Description rdf:about=""

Any ideas please?

StarGeek

You could use
exiftool -PersonInImage=
to remove just that tag or
exiftool -XMP-iptcExt:all=
to remove the entire block, which might contain other tags.

See XMP Tags for more details.

Also, try using exiftool -G1 -a -s -TAGNAME, replacing TAGNAME with that actual tag if you want to see what group the tag is actually part of.
"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

frereroy

Thanks, it worked just fine.

Is there a way to combine my 4 commands so that I could find and eliminate all the offending tags in a single pass?

exiftool -xmp-mediapro:all=
exiftool -xmp-expressionmedia:all=
exiftool -XPTitle=
exiftool -PersonInImage=

Thanks in advance.

Hayo Baan

Sure, just combine them all on one line :)
Hayo Baan – Photography
Web: www.hayobaan.nl

frereroy

Wow, as easy as ABC.
Many thanks, I was expecting a long and complicated script.