News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

IPTC issues...

Started by Archive, May 12, 2010, 08:53:54 AM

Previous topic - Next topic

Archive

[Originally posted by 00coday on 2006-06-08 23:29:02-07]

I am using the following to get specific IPTC fields out of images.  Somehow, I always end up with
the  ApplicationRecordVersion field (and other unrequested fields) and fields with "(some number
here)" at the end.  See below:

Array for fields:

  my @ioTagList=('IPTC-ApplicationRecord:ObjectName',

                'IPTC-ApplicationRecord:DateCreated',

                'IPTC-ApplicationRecord:By-line',

                'IPTC-ApplicationRecord:By-lineTitle',

                'IPTC-ApplicationRecord:City',

                'IPTC-ApplicationRecord:Province-State',

                'IPTC-ApplicationRecord:Country-PrimaryLocationName',

                'IPTC-ApplicationRecord:Headline',

                'IPTC-ApplicationRecord:Credit',

                'IPTC-ApplicationRecord:Source',

                'IPTC-ApplicationRecord:Caption-Abstract',

                'IPTC-ApplicationRecord:Writer-Editor',

                'IPTC-ApplicationRecord:OriginalTransmissionReference',

                'IPTC-ApplicationRecord:Category',

                );

ExifTool call I am making:

  $info = $exifTool-)ImageInfo($imgPath, \@ioTagList), {Group =) 'IPTC'});

I substituted =) for the arrows since this forum doesn't like the angle brackets.

Any thoughts?

Archive

[Originally posted by exiftool on 2006-06-09 11:32:17-07]

I'm not sure why you're getting anything at all actually.  "IPTC-ApplicationRecord" is not a valid group name.  Use "exiftool -listg1" to list all valid family 1 group names.  The IPTC group is not broken down into separate records in family 1, so the group name is just "IPTC", which you have already stated using the "Group" option.  So the following should do what you want:

Code:
my @ioTagList = qw(ObjectName DateCreated By-line By-lineTitle City
 Province-State Country-PrimaryLocationName Headline Credit Source
 Caption-Abstract Writer-Editor OriginalTransmissionReference Category);

$info = $exifTool->ImageInfo($imgPath, \@ioTagList, {Group => 'IPTC'});