Delete specific XMP mwg-rs:Regions info. but not all.

Started by alexdufort, September 07, 2016, 01:12:51 PM

Previous topic - Next topic

alexdufort

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

Phil Harvey

Hi Alex,

Yes.  The struct documentation explains this.

For you, the command would be:

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

This will remove all MWG RegionStruct structures in the RegionList with the name "0_Ignore".

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

alexdufort

Thanks Phil,

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