Hi again
In a previous topic I asked some unrelated questions, but was asked to put just one topic in each thread, which I am very happy to comply with.
My question is> I am unable to let the program read the IPTC tags, I have done syncro but it does not seem to work. And the tricks I have seen here don't work either. Any ideas? I have read everything on here which I have found and relates to this topic.
Offline
You have to configure your $conf['use_iptc'] and $conf['use_iptc_mapping'] variables (in configuration file). But before doing this, you have to know how to configure it. Here comes the tools/metadata.php file. Copy your photo as tools/sample.jpg and open tools/metadata.php in your browser. You'll see in which fields your IPTC metadata are stored.
Then look in the include/config_default.inc.php file how is set $conf['use_iptc_mapping'] and create a file include/config_local.inc.php file with:
<?php $conf['use_iptc'] = true; $conf['use_iptc_mapping'] = array( 'keywords' => '2#025', 'name' => '2#005', ); ?>
(for example)
Offline
OK, didn't realise you needed to use the tag#, not the names. I will try this tonight.
Offline
OK, I warned you.. here goes:
I did as you suggested, but when I synchronize the web I get the following message:
Metadata synchronization results
* 35 elements informations synchronized with files metadata
* 35 images candidates for metadata synchronization
* Used metadata : filesize, width, height
So it appears the only metadata being used is filesize, width and height. I did create the config_local.inc.php with the following:
<?php
$conf['use_iptc'] = true;
$conf['use_iptc_mapping'] = array(
'iptc_headline' => '2#105',
'iptc_caption' => '2#120',
'iptc_byline' => '2#080',
'iptc_copyright_notice => '2#116',
);
?>
and edited the lang file as well. Any clues what I did wrong??
Offline
joi wrote:
<?php
$conf['use_iptc'] = true;
$conf['use_iptc_mapping'] = array(
'iptc_headline' => '2#105',
'iptc_caption' => '2#120',
'iptc_byline' => '2#080',
'iptc_copyright_notice => '2#116',
);
?>
missing quote after 'iptc_copyright_notice
8-)
Offline
joi wrote:
Any clues what I did wrong??
The keys you've been using for the $conf['use_iptc_mapping'] array are meaningless for PhpWebGallery. You have to use fieldnames of #images table or "keywords" (which will fill the #tags table).
Offline
Excellent, I missed that point. 8-)
Offline
Turns out I just needed to change
$conf['show_iptc'] = false; -> $conf['show_iptc'] = true;
in include/default.inc.php
But the tags only appear after I click on the "show file metadata" button. If I want it to appear right below the images without having to select the button, where do I do that?
Sorry for all these stupid questions...
Offline