ExifTool Forum

ExifTool => Newbies => Topic started by: alexdufort on September 07, 2016, 01:12:51 PM

Title: Delete specific XMP mwg-rs:Regions info. but not all.
Post by: alexdufort on September 07, 2016, 01:12:51 PM
Hello Exif experts

I have ill-advisedly name tagged some people in group photos usong XMP mwg-rs:Regions with the name "0_Ignore"
Can I use ExifTool to remove such specific unwanted region tags from a jpg file (or group of files)?

I imagine the command is something like

ExifTool -XMP-mwg-rs:0_Ignore -P *.jpg


With best wishes,

Alex
Title: Re: Delete specific XMP mwg-rs:Regions info. but not all.
Post by: Phil Harvey on September 07, 2016, 01:30:07 PM
Hi Alex,

Yes.  The struct documentation explains this (https://exiftool.org/struct.html#Deleting).

For you, the command would be:

exiftool -regionlist-="{Name=0_Ignore}" -P -ext jpg DIR

This will remove all MWG RegionStruct structures (https://exiftool.org/TagNames/MWG.html#RegionStruct) in the RegionList with the name "0_Ignore".

- Phil
Title: Re: Delete specific XMP mwg-rs:Regions info. but not all.
Post by: alexdufort on September 08, 2016, 02:39:25 AM
Thanks Phil,

Great to have your reply to my newbie question form the source himself. Alex