problem with function getFullImageURL

I am trying to get IPTC support via:
http://www.zenphoto.org/trac/ticket/100

However, the added function is not correctly finding the image.

The code in question is:
$image_path = dirname(SERVERPATH) . getFullImageURL();

which is returning
/home/abc/public_html/xyz/zenphoto/testing123/test.jpg
when it should be giving me
/home/abc/public_html/xyz/zenphoto/gallery/testing123/test.jpg

further testing reveals that getFullImageURL() is returning
/zenphoto/testing123/test.jpg
and it should be giving me:
/zenphoto/gallery/testing123/TheFriendUP1.jpg

any ideas?

Comments

  • Which IPTC fields are you needing? The current version of zenphoto has built-in IPTC support for all the fields equivalent to the image items that you can edit on the admin pages.
  • affa Member
    Ah. So it does.

    I'm actually completely misusing IPTC fields for my own purposes (ie, storing the medium of a painting in an image as watercolor). Their are enough I don't need on the admin page to suit my purposes.

    Thanks for putting me back on the right path.

    Note (I know about the custom field, but overall I think this is a better choice long term.)

    Thanks again!
  • I agree that IPTC is the best place to store image info--that way it travels with the image! Be aware that zenphoto caches the IPTC/EXIF data from the image into the database. It is really best if you integrate the fields you want into the zp core IPTC handling/database. It can get take a fair amount of processing time to parse this data, so you want to do it only once. Again, if there are fields that you need that are currently not supported, make a track ticket request for them. They are generaly not too hard to add (if you know how). If they might be generally useful we will add them.
Sign In or Register to comment.