IPTC Support IPTC Support
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

IPTC Support

Started by gtroll, December 06, 2003, 07:41:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gtroll

I dunno if this will work but will someone with a pic with IPTC test
Replace// with subdomains the variable is $_SERVER["SERVER_NAME"] does not return the right value instead of using a new config variable I reused $CONFIG["ecards_more_pic_target"] with trailing slash in the configure
    // Create the add to fav link

with


    if ($CONFIG['read_iptc_data']) $iptc = get_IPTC($path_to_pic);
    if (isset($iptc) && is_array($iptc)) {
        if (isset($iptc['Title'])) $info[$lang_picinfo['iptcTitle']] = trim($iptc['Title']);
        if (isset($iptc['Copyright'])) $info[$lang_picinfo['iptcCopyright']] = trim($iptc['Copyright']);
        if (isset($iptc['Keywords'])) $info[$lang_picinfo['iptcKeywords']] = trim(implode(" ",$iptc['Keywords']));
        if (isset($iptc['Category'])) $info[$lang_picinfo['iptcCategory']] = trim($iptc['Category']);
        if (isset($iptc['SubCategories'])) $info[$lang_picinfo['iptcSubCategories']] = trim(implode(" ",$iptc['SubCategories']));
    }
    // with subdomains the variable is $_SERVER["SERVER_NAME"] does not return the right value instead of using a new config variable I reused $CONFIG["ecards_more_pic_target"] with trailing slash in the configure
    // Create the add to fav link

eolica

It works fine!  (merged with changes in topic:
http://forum.coppermine-gallery.net/index.php?topic=2200 )

The only problem is with Title. My IPTC field is Headline, not Title (as per Irfanview IPTC support), so there is no IPTC Title field shown
Sesto Avolio