ExifTool Forum

ExifTool => The Image::ExifTool API => Topic started by: sjDelaney on May 06, 2016, 09:12:38 PM

Title: Subject and HierarchicalSubject
Post by: sjDelaney on May 06, 2016, 09:12:38 PM
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
Title: Re: Subject and HierarchicalSubject
Post by: Phil Harvey on May 07, 2016, 09:24:55 AM
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
Title: Re: Subject and HierarchicalSubject
Post by: sjDelaney on May 07, 2016, 08:49:42 PM
Thanks, I got it working.