OK. So I've uploaded the latest SVN code to my dev zenphoto site at
http://www.thinkdreams.com/devzenSeems to work fine. I am working on the EXIF theme functions. I have it to the point where my theme actually displays the containing
tags in the image.php file.
(see
http://www.thinkdreams.com/devzen/index.php?album=vermont&image=burlington+marketplace.JPG) - you'll have to look at the HTML code behind it, since it isn't displaying anything.
Tris-
Is the EXIF stuff complete enough to display EXIF data using that printImageEXIFData function yet? It doesn't seem to display anything on images I know have EXIF data embedded in there. Seems to me all the pieces are there, but I just might be missing something.
Comments
and i have turned off some of exif info in functions.php
http://www.thinkdreams.com/devzen/njsummer/IMG_2126.JPG.php
Auto rotation of images based on EXIF tags
Generic Display of EXIF information (basically already there from what Tris has coded)
EXIF date sorting (request on forum)
Sorting by other EXIF parameters (request on forum)
Anyone else have any ideas?
Specifically, the option to use "IPTC Headline" to populate the image title field and "IPTC Caption" to populate the image description field would be fantastic. Be happy to start a new thread if this isn't the right place for such a request
So maybe after EXIF is working and the theming portions done, a library can be found to integrate into Zenphoto that supports IPTC.
And not at all, this is a fine thread to ask. EXIF and IPTC are usually found together, but usually EXIF is the tagging done during the photo shooting, and the IPTC usually after photo editing (at least generally the way I've seen it done).
http://www.bushwoodworking.com/zenphoto/restorations/IMG_3837.JPG.php#
It works fine. That way I can test it in an actual theme environment. Now on to more theme functions....
@DWN, I'll see what I can come up with to implement what you asked for.
I think this might do the trick.
http://www.bushwoodworking.com/zenphoto/test/me_popart.jpg.php#
The image is one I know has no EXIF info attached to it, so it displays No EXIF Data.
Here the modifications I made to the printImageEXIFData() function:
`function printImageEXIFData() {
global $_zp_exifvars;
$exif = getImageEXIFData();
echo "
n";- No EXIF Data
n"; - $label: $value
n";
nn";if (! $exif ) {
echo "
} else {
foreach ($exif as $field => $value) {
$display = $_zp_exifvars[$field][3];
if ($display) {
$label = $_zp_exifvars[$field][2];
echo "
}
}
}
echo "
}`
Basically just added a check in there for a false value on $exif array, as I think that is what Tristan's getEXIFData function returns when it has no data in it.
Is that cool with you Tristan? That fulfills DWNs request.
Anyone know what might be wrong?
Then when I click the link, the table goes away, but when I click the link again the table does not return.
Also, I can't figure out how to fix the CSS for this to change the colors for the "Image Info" link.