Filename into MWG-rs person

Started by meme, March 04, 2023, 07:28:36 AM

Previous topic - Next topic

meme

Greetings all,
Could someone help me in adding the filename into the person name under Exif MWG and for several thousand unique files that have unique filename as a batch process in the same folder.
Thank you

Phil Harvey

MWG-rs doesn't really have a person name. The closest you get is a region name, but without also writing the coordinates of a corresponding region it doesn't make much sense to use this.  Instead, maybe the IPTC extension tag PersonInImage may be better.  The command for this would be:

exiftool "-personinimage<filename" DIR

But you can change the tag in the above command to write anything you want, or add more arguments to write more than one tag at the same time.

- 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 ($).

StarGeek

Quote from: Phil Harvey on March 04, 2023, 08:26:07 AMMWG-rs doesn't really have a person name. The closest you get is a region name, but without also writing the coordinates of a corresponding region it doesn't make much sense to use this.  Instead, maybe the IPTC extension tag PersonInImage may be better.  The command for this would be:

exiftool "-personinimage<filename" DIR

Maybe use Basename (req. v 12.22) instead, so as not to include the file extension.  But in all likely hood some parsing would need to be done on the filename.  And if there's more than one person name, the -sep option would be needed.

A lot more details are needed to do this correctly.

Also, minor nitpick, the MWG is not an EXIF Tag, but an XMP tag.  All EXIF tags metadata, but not all metadata are EXIF.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).