Hi gang.
Just playing with the current nightly build I noticed one thing.
zenphoto version 1.2.9 [5356]
When I do
`
<?php echo getBareImageTitle();?>
`
I get the Description from the IPTC data of the file. On a little closer look it seems there is an error somewhere in the code where the data is pulled from the file, instead of taking the name of the file or the Title tag from the IPTC it is pulling data from the description tag.
At least with the ZenPage theme, but again closer look I can see the bug in the admin under albums as well.
`
<?php printImageDesc(true); ?>
`
Still does output the correct data.
Screenshots
http://img.skitch.com/20100502-p6fs1y2b1xeawn661ry3c23smp.jpghttp://img.skitch.com/20100502-kfhdqssgh73shc44agspdnq2fm.jpghttp://img.skitch.com/20100502-j6a8n721y1c3493n3rsggq7pg9.jpg
Comments
Did you try a metadata refresh?
I tried Refresh metadata and same story.
I however noticed if the description field is empty in the JPG image it does pull the file name correctly.
http://img.skitch.com/20100502-gcqyx45aswp69ybe5g2kss9igi.jpg
http://www.zenphoto.org/trac/ticket/1495
ZenPhoto always used just pulled the Title tag or in my case because I leave that one empty it pulls the name of the file minus the jpg extension.
To me getting the Description of a file pulled to name the image title is a bit strange as the description can ofter be very long.
http://img.skitch.com/20100502-8snpfma1um6c65abq95wpyb2bi.jpg
http://img.skitch.com/20100502-drb53ci17qnyk3qcp2ejs182b4.jpg
http://img.skitch.com/20100502-3ky8btfushsys5k43ahsb27rb.jpg
Just out of curiosity would I be able to change it back to the way it used to be. As well I am trying to understand what exactly is wrong.
`
//EXIF title [sic]
if (empty($title)) {
$title = $this->get('EXIFDescription');
}
`
Why was this change made?
When I remove this it goes back to good old behavior.
http://img.skitch.com/20100502-kkmpf1236sk91r6icne9gbfk6g.jpg
to me it should be like this if it should stay there to say. Filename and drop extension.
`
//EXIF title [sic]
if (empty($title)) {
$title = $this->get('displayname');
}
`
The "caption" field is what is used for the zenphoto description.