Subject and HierarchicalSubject

Started by sjDelaney, May 06, 2016, 09:12:38 PM

Previous topic - Next topic

sjDelaney

Command line exifTool finds these tags easily, but I'm not able to find them using Image::Exiftool and ImageInfo.

I've tried every variation of the names I can find in documentation, xml files, and print outs.

Here's what I have...

my @TagList = qw(*:*subject* *:*Subject* creator;);  # using creator for testing

$Info = ImageInfo($File,\@TagList);
       foreach (keys %$Info) {
            print "$FileName $_ => $$Info{$_}\n";
      }

Results:
  20160326-101940.xmp SubjectDistanceRange => Unknown
  20160326-101940.xmp Creator => Steve Delaney

Subject and HierarchicalSubject are never found, even when I hard code them.


p.s. I'm reading xml files.

-sd

Phil Harvey

Very odd.  I just ran your exact code and it works for me, but it doesn't extract Creator because of the extra semicolon at the end of this tag name.

You must be running an old version of ExifTool.  Try updating to the most recent version.

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

sjDelaney