Member
Member
wblackwell   11-06-2008, 16:11
#1

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

Administrator
Administrator
acrylian   11-06-2008, 16:29
#2

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.

Member
Member
sbillard   11-06-2008, 23:44
#3

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

Member
Member
wblackwell   12-06-2008, 15:03
#4

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

Administrator
Administrator
acrylian   12-06-2008, 15:17
#5

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

Member
Member
wblackwell   12-06-2008, 15:44
#6

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

Walker

Administrator
Administrator
acrylian   12-06-2008, 16:28
#7

The absolutly correct syntax would be `` etc.

Junior Member
Junior Member
LindsieBergevin   03-08-2010, 02:44
#8

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

Member
Member
sbillard   03-08-2010, 18:34
#9

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.