![]() |
|
EXIF Theme Functions - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: EXIF Theme Functions (/thread-1359.html) |
EXIF Theme Functions - thinkdreams - 10-04-2007 OK. So I've uploaded the latest SVN code to my dev zenphoto site at http://www.thinkdreams.com/devzen Seems to work fine. I am working on the EXIF theme functions. I have it to the point where my theme actually displays the containing (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. EXIF Theme Functions - dwn - 10-04-2007 i am using SVN code too and after inserting to image.php of audibles theme and everithing is working fine. take a look at http://gallery.harcek.info/pes/pso11.jpg.php and i have turned off some of exif info in functions.php EXIF Theme Functions - thinkdreams - 10-04-2007 I'm going to completely reinstall the theme and zenphoto this evening. Something's been messed up on my development site from what I can gather. EXIF Theme Functions - thinkdreams - 10-04-2007 At least that confirms the functions are working. Thanks DWN. EXIF Theme Functions - thinkdreams - 10-04-2007 Yeah, something goofy in my previous install. It works OK now with a fresh build. http://www.thinkdreams.com/devzen/njsummer/IMG_2126.JPG.php EXIF Theme Functions - thinkdreams - 10-04-2007 OK. So with that, what sorts of EXIF theme functions would people be interested in? Obvious ones I can think of are: Auto rotation of images based on EXIF tags Anyone else have any ideas? EXIF Theme Functions - dwn - 11-04-2007 maybe some type of check if general exif data is present in image file and if they are not present then printImageEXIFData() can return something like "no EXIF data found" instead of printing out all the tags without data. EXIF Theme Functions - bitbybit - 12-04-2007 Not sure if this would/should be wrapped into an exif function, but as far as data extraction/display, pulling some IPTC info from pictures would be great for those of us who use them in photos. 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 :) EXIF Theme Functions - thinkdreams - 12-04-2007 IPTC tags are not covered by the Exifixer library I don't think. So that would entail including IPTC support in a separate library. I think I'll defer to Tristan's recommendation on this one, but my gut feeling would be that while it's not out of bounds to include it at some point, I don't know how feasible it is for the 1.1 release to have it done. IPTC tags are generally used after the photo is taken in most cases (as I understand it) and are supported in photo editing applications such as Photoshop. 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). EXIF Theme Functions - thinkdreams - 12-04-2007 OK. I've fully removed the old EXIF function that I was using in my production theme (running SVN code), and replaced it with the SVN Rev 438 EXIF printImageEXIFdata() function: 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. EXIF Theme Functions - thinkdreams - 12-04-2007 @dwn- 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 "[list]n"; if (! $exif ) {
echo "[/list]nn"; }` 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. EXIF Theme Functions - sbillard - 13-08-2007 OK, I have this working correctly if I use Anyone know what might be wrong? EXIF Theme Functions - dspnorman - 16-08-2007 sbillard, the javascript with the toggle function is missing from the SVN. I've posted a fix here. EXIF Theme Functions - sbillard - 16-08-2007 Thanks. I put scripts-common in my Zen folder. I can get the toggle to go to "off" but not to "on". That is, I modified the 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. |