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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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