IPTC on new build

Hey everyone. I'm wondering how to include extra IPTC fields in image.php. I have the most recent nightly build (as of the posting of this topic) but I don't see any other IPTC data besides image title, image description, and tags.

Also, when I add a new tag to the image, it includes it in the dB. Does anyone here know if there is a way to tag the actual image files with a new tag? This would be wonderful because it would let the community tag images and then those images would be portable to other applications.

thanks,
Walker

Comments

  • acrylian Administrator, Developer
  • Zenphoto retrieves the following IPTC data from an image:
    Title, Caption, Location, City, State, Country, Credit, Copyright, and Keywords (tags)
  • I understand that Zenphoto does retrieve that data, but for some reason it's not showing up. I've tried the functions above, but I must be typing something wrong. (I've also included new images with full IPTC data just to test if it was a cache thing.)

    Do I need to have getImageData in image.php as well as printImageMetadata?

    ok. I'm confused. An example of the code needed to print all of the IPTC metadata in image.php would be great.

    all the best,
    Walker
  • acrylian Administrator, Developer
    The display of EXIF/IPTC data is implemented on default's theme image.php.
  • I figured it out. You have to add this to image.php to get it to actually show up.

    <?php printImageData(location, Location)?>
    <?php printImageData(state, State)?>
    <?php printImageData(city, City)?>
    <?php printImageData(country, Country)?>
    <?php printImageData(credit, Credit)?>
    <?php printImageData(copyright, Copyright)?>

    Walker
  • acrylian Administrator, Developer
    The absolutly correct syntax would be `<?php printImageData("location", "Location"); ?>` etc.
  • I am having problems with the IPTC data showing up, too. I just recently installed the latest version of ZenPhoto on a linux server (if it helps to know that.)

    After reading this thread, I posted this into both image.php files of the default and current theme I am using:

    <?php printImageData("location", "Location"); ?>
    <?php printImageData("state", "State"); ?>
    <?php printImageData("city", "City"); ?>
    <?php printImageData("country", "Country"); ?>
    <?php printImageData("credit", "Credit"); ?>
    <?php printImageData("copyright", "Copyright"); ?>

    Could I have pasted it into the wrong place in that file? The above solution of this from wblackwell wasn't clear to where in that file to put it. I am still having the problem of Titles and Descriptions showing up.

    Please help.

    Lindsie
  • Does the data show up on the admin/image edit pages?
Sign In or Register to comment.