Thread

Posted on Fri Jun 9 02:29:02 2006 by 00coday
IPTC issues...
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?
Direct Responses: 2446 | Write a response
Posted on Fri Jun 9 14:32:17 2006 by exiftool in response to 2440
Re: IPTC issues...
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:

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'});
Write a response