PDA

View Full Version : Setting IPTC values as preference to XMP values


msbc
16th of June 2004 (Wed), 22:27
My workflow for my 10D RAW files uses C1 for processing to TIF, PSCS for editing and output to JPG and iMatch for managment.

I use IPTC metadata - initially I add this to the CRW/THM before processing. C1 copies this to the TIF and PSCS copies this to the JPG. The problem is that PSCS copies the IPTC into the XMP section of the IPTC data block. When I add additional IPTC data to the JPG in iMatch it places it in the IPTC section as it is not XMP aware. So, the XMP data is not in sync with the IPTC data.

I'd like to change my EE install to use the IPTC data instead of the XMP data - can someone point me to the right file(s) to acomplish this?

In the long term could a config option be added to EE settings to choose which to use if both are present?

Pekka
19th of June 2004 (Sat), 17:19
The precedence is determined in PHOTODATA_datahandler.php

In the long term could a config option be added to EE settings to choose which to use if both are present?

Yes of course.

msbc
20th of June 2004 (Sun), 01:41
Pekka,

I looked through PHOTODATA_datahandler.php and I think there is an error, which was causing my problem. All of the attributes are coded in the manner:

$location = $xmp_city;
if ($iptc_city != "") $location = $iptc_city;

So, if there is an IPTC version it will override the XMP one. All except supplemental_categories which I was seeing the XMP values for. This is coded as:

$supplemental_categories_list = $xmp_supplemental_categories;
if (count($xmp_supplemental_categories) == 0) {
$supplemental_categories_list = $iptc_supplemental_categories;
}

I believe the coditional should be
if (count($iptc_supplemental_categories) != 0) {