Using IPTC

Hey, all!

I've installed ZenPhoto, tweaked it, and am generally pretty happy. One issue I'm having is IPTC support.

After reading what I could find here, it seems that ZenPhoto supports IPTC (based on http://www.zenphoto.org/trac/ticket/100 and the fact that it's listed as "duplicate").

Using the instructions on that page, I was able to get my IPTC titles to appear -- sometimes (I got an error if there wasn't a title or headline). Then I realized that using a separate iptc.php wasn't the right way to go if IPTC was already part of the program.

So I went looking for how to display IPTC tags (namely the headline/title and the caption) in a theme, but found nothing on any of the tag lists.

So... can one of you kind folks tell me if A) it is in fact possible to display IPTC info in a theme, and if so, what tags I need to include in the image.php file?

Many thanks for any help!

Andrew

Comments

  • First, IPTC is supported in the community build, so if you are not running that build I recommend that you upgrade to it. With the community build, the IPTC title and description are used to set the image title and description.

    Other tags are not provided currently. Are there particular tags that you are interested in? I certainly would like to see an image with IPTC date fields set so that I could have the image date reflect that data. I don't have an application that supports setting the IPTC date.

    I recommend that you create a ticket in Trac (http://www.zenphoto.org/trac) describing the tags you would like to be able to display.
  • Super -- I'll upgrade ASAP. Is there a single-file download of the community build, or should I just go to http://www.zenphoto.org/trac/browser/branches/community and grab each one individually?

    Thanks for this!
  • Nightly builds can be downloaded from here: http://www.zenphoto.org/files/nightly
  • Excellent -- I just got it, installed it, and am lovin' it. Thank you!
  • IPTC Title and Description are great... but could 'Keywords' be added?
    Those are the main 3 I use (well. except for 'Location')
  • It is in the lates build! We don't have a field in the zenphoto images for location, How important is that to you?

    Keywords is added automatically for new images. It is a bit involved to get it to pick them up for old ones. If you are adventuresome, drop the column 'mtime' in your images table, then run the upgrade.php program. This will make zp look at all your images and load the iptc data. Could take some time, though.
  • hmm, I'll check it out (I downloaded the Oct 12 nightly build, but I'll try today's).

    In iVew and Lightroom the IPTC I use is:
    Title
    Keywords (which is usually a list of people in the images)
    Description (or Caption -- never sure which it is)
    Location (street address or a place like "Cape Cod")
    City
    State
    Country

    I can't use the iView or Lightroom galleries however, 'cause they're so bad.
    Add a drop-down menu to Show Keywords (or categories or whatever) and ZP will rule them all.
  • Is there a particular theme that would display Keywords?
    I just scrolled through all the themes that come with ZP... there's the caption but no keywords (or even "tags" from admin/edit).

    The default theme has an "Image Info" toggle link to show meta data, but this seems to be all EXIF...
  • <?php if (getTags()) { echo 'Tags: '.getTags().''; }?>

    Put that in image.php after your description. That will display keywords of new images uploaded and tags that you put in using admin. Tags/keywords were JUST implemented yesterday so the features are coming.
  • jimhere:

    Can you put in a ticket for your requested IPTC data? Won't be part of the 1.1 release, too late to make the cut, but would be a good feature for 1.2.

    Please be specific. For instance, do you need location, city, state, country to be separate items or could they all go into a zp "location" container?

    To submit a ticket go to http://www.zenphoto.org/trac/ and click on the new ticket tab. (You will need to have an account: http://www.zenphoto.org/support/topic.php?id=1320&replies=1)
  • I sent it in...
  • I'm having a problem with the IPTC keywords in the Oct. 29 nightly. The keywords in the images are separated by comma's and zenphoto is only importing the first keyword into the tags field. I'm not sure if this is a problem with how the keywords are stored (that was how they were exported from Lightroom) or if it's a bug in zenphoto.

    Any ideas?
  • Megan:

    Are the keywords part of your image IPTC data? There had been a problem with picking up only the first keyword out of image IPTC, but I believe that had been corrected by the Oct. 29 nightly. Can you provide a URL to the image with the IPTC data? I will download it and look into the problem.

    As of today, zenphoto is picking up multiple keywords from images that were placed there by Adobe Bridge.
  • Here's the link to my test gallery page:

    http://www.meganmcdermott.com/zenphoto/test-album-1/uofwsept10--107.jpg.php

    Actual photo is:
    http://www.meganmcdermott.com/zenphoto/albums/test-album-1/uofwsept10--107.jpg

    The keywords were part of IPTC data created by Lightroom. I'll check the latested build again tomorrow.

    Thanks for your help!
  • Well, I uploaded your image and got all the keywords. Let us know if there is still a problem after you upgrade the the nightly build.
  • I just tested the Oct 29 build, and it DID suck in multiple keywords, so that's great! The keywords were added and embedded in iView, by the way. Bridge, Lightroom, Photoshop, and ZenPhoto can see them.

    Oh, and the IPTC "description" (sometimes called caption) is there, too.

    Will the "search" feature be able to find these, as well as file names?
  • jimhere:
    Yes, the search function will find all the above.

    Megan:
    One thing you might have to do:
    drop the `mtime` column in you images table then run upgrade.

    zenphoto only looks at the image Exif/IPTC data if it thinks the image is "new". If you processed the image when there was the bug in zenphoto, things will not change until you convince zenphoto that the image is new. the easiest way to do that is by the above procedure.
  • Thanks for the tip. I'm moving this to another server now so that doesn't really matter (now I'm getting error messages but I'll post another topic about that).

    Keywords are working with the 11-01 nightly!
  • Is there any chance of getting an author/creator/credit field? I'm not sure what the IPTC standard is for this (Photoshop says Author, Lightroom says Creator). A copyright field might be good too.

    I might have to build this in myself but it would be nice if it was part of zenphoto so I don't have to worry about upgrades...
  • Please make a ticket in Trac describing what you wish to have. If you do decide to build it yourself, we would welcome your patch.

    You can add your requests to ticket #297
  • I see that Megan added some patches yesterday for the copyright/credit fields (Trac ticket #297). I'm entirely new. How do I go about applying this patch?
  • The patch is a "changes" list of what Megan did. This means that you have to go through the file that is patched and places these changes in it. Or, you could wait until the changes are incorporated in a nightly build.
  • Thanks sbillard. That's what I thought. I'll give it a go.
Sign In or Register to comment.