ImageTitle getting Description data

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.jpg
http://img.skitch.com/20100502-kfhdqssgh73shc44agspdnq2fm.jpg
http://img.skitch.com/20100502-j6a8n721y1c3493n3rsggq7pg9.jpg

Comments

  • acrylian Administrator, Developer
    I think best would be to open a ticket and attach one of the images this happens with so we can try to reproduce it.

    Did you try a metadata refresh?
  • olihar Member
    It is a fresh install test on MAMP Pro.

    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
  • acrylian Administrator, Developer
    Please open a ticket as mentioned above so sbillard who is the expert on this spots this later.
  • olihar Member
    I have indeed, I hope I did it right.

    http://www.zenphoto.org/trac/ticket/1495
  • acrylian Administrator, Developer
    Yep, best you post a link to an image this occurs on. So we can check if this is an import issue or an EXIF problem (different cameras/programs sometimes do different things..).
  • I have looked at your ticket. What you are seeing is a confusion caused by the EXIF specification. The "description" [sic] field is the title of the image.
  • olihar Member
    So are you saying this is normal? This is the first time I am seeing this like this for ZenPhoto.

    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.
  • olihar Member
    Ok been digging around a little bit. I have a question about this here. from class-image.php

    `
    //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');
    }
    `
  • This was not a change. (except to test to see if the title has not already beens set.) You are, of course, free to make any changes you wish. However, the EXIF spec does say that the "EXIFdescription" is the image title and we have always honored that.

    The "caption" field is what is used for the zenphoto description.
  • olihar Member
    I guess Adobe is once again not going with the standards then. I will make the change to my setup, I use Adobe Photoshop Lightroom for all my cataloging, as my current live 1.2.6 RC1 does not behave this way, that's why I am a bit surprised to see you saying that this has always been like this.
  • acrylian Administrator, Developer
    Not all from Adobe as with my CS3 Bridge it seems to do it right.
  • gmh Member
    I just updated to 1.2.9 and am having the same problem with the description (caption field) being used for the image title. I am using the same camera and software (Lightroom) that I used before the update. If the caption field is empty then the file name is used for the image title otherwise it uses the caption as the title. I would like to figure out how to fix this, as I have thousands of images that now have a long description as the image title.
Sign In or Register to comment.