IPTC data in the image title and description IPTC data in the image title and description
 

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 data in the image title and description

Started by vojtec, February 21, 2008, 09:14:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vojtec

Hello,

when I import an image with IPTC data, I'm able only to show them down under the picture in the info box, but I'd like to show IPCT title in image title and same with description.

Is it possible?
Thanks for help
vojtec

mala

#1
I  had a similar problem. The title of my images was labelled "Headline" when I loocked at the IPTC data with some program (in this case irfanview).
Then I modified a little the file include/picmgmt.inc.php . Here are the two lines. The commented one (starting with //) is the original the other is the modif.

          //    $title = (isset($iptc['Title'])) ? $iptc['Title'] : $title;  //ORIGINAL LINE AM09_02_2008
               $title = (isset($iptc['Headline'])) ? $iptc['Headline'] : $title;        //AM09_02_2008 TO PATCH UP ITPC 


The full IPTC array  is in iptc.inc.php to find out what is what.

After this modification the "Headline" IPTC field went directly in the title of the image (I will eventually upload 7000 images so the modification was important for me).

Maybe this will help you to settle your problem, although I am not sure the solution is very kosher.
Andreas