Author Topic: Empty Face Tags  (Read 132 times)

stevesuk

  • Newbie
  • *
  • Posts: 3
Empty Face Tags
« on: July 03, 2020, 05:39:48 AM »
Lightroom exports empty face tags with  the (MWG) RegionName not set.

I am trying to transfer the face tags to another file minus the empty ones but I'm not having a lot of luck.

I'm using this:-

exiftool -RegionInfo= b.jpg
exiftool -tagsfromfile a.jpg -RegionInfo -if "defined $RegionName" b.jpg

It fails.

Regards,
Steve.


StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3795
Re: Empty Face Tags
« Reply #1 on: July 03, 2020, 11:32:15 AM »
Your first command clears all region info from b.jpg.  So when you check b.jpg to see if it has RegionName defined, it fails because you cleared all region info.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

stevesuk

  • Newbie
  • *
  • Posts: 3
Re: Empty Face Tags
« Reply #2 on: July 03, 2020, 12:05:47 PM »
I clear b.jpg to make way for the 'non empty' tags from -tagsfromfile a.jpg ... which I need to filter out I'm just way off somewhere.
 

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16706
    • ExifTool Home Page
Re: Empty Face Tags
« Reply #3 on: July 03, 2020, 02:05:31 PM »
StarGeek's point was that your -if condition tests b.jpg, so it will always fail.  It seems as if you want the -if to apply to a.jpg, but it doesn't work like that.

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

stevesuk

  • Newbie
  • *
  • Posts: 3
Re: Empty Face Tags
« Reply #4 on: July 03, 2020, 03:07:25 PM »
Ok, thanks for confirming I can't do it as easy as that. I've found a way to read the entries from a.jpg, using a read-only library, and I'm creating all the non-empty Area structures in b.jpg using exiftool.