ZenphotoCMS Forum
IPTC on new build - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: IPTC on new build (/thread-3074.html)



IPTC on new build - wblackwell - 2008-06-11

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




IPTC on new build - acrylian - 2008-06-11

ITPC/EXIF fields:
http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html#functiongetImageData
http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html#functionprintImageMetadata
http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html#functionprintImageEXIFData

Sorry, Zenphoto does currently not have the ability to add ITPC/EXIF data to images itself, you have to add that before uploading. But there is already a ticket for it.




IPTC on new build - sbillard - 2008-06-11

Zenphoto retrieves the following IPTC data from an image:
Title, Caption, Location, City, State, Country, Credit, Copyright, and Keywords (tags)




IPTC on new build - wblackwell - 2008-06-12

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




IPTC on new build - acrylian - 2008-06-12

The display of EXIF/IPTC data is implemented on default's theme image.php.




IPTC on new build - wblackwell - 2008-06-12

I figured it out. You have to add this to image.php to get it to actually show up.

Walker




IPTC on new build - acrylian - 2008-06-12

The absolutly correct syntax would be `` etc.




IPTC on new build - LindsieBergevin - 2010-08-03

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:

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




IPTC on new build - sbillard - 2010-08-03

Does the data show up on the admin/image edit pages?