Member
Member
thinkdreams   10-04-2007, 18:43
#1

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
[list][/list]
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.

Member
Member
dwn   10-04-2007, 19:21
#2

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

Member
Member
thinkdreams   10-04-2007, 19:34
#3

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.

Member
Member
thinkdreams   10-04-2007, 19:35
#4

At least that confirms the functions are working. Thanks DWN.

Member
Member
thinkdreams   10-04-2007, 19:53
#5

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

Member
Member
thinkdreams   10-04-2007, 20:20
#6

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
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?

Member
Member
dwn   11-04-2007, 14:40
#7

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.

Member
Member
bitbybit   12-04-2007, 00:18
#8

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 :)

Member
Member
thinkdreams   12-04-2007, 00:49
#9

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).

Member
Member
thinkdreams   12-04-2007, 01:58
#10

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.

Member
Member
thinkdreams   12-04-2007, 02:38
#11

@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 "[*]No EXIF Datan";        

    } else {  

  foreach ($exif as $field => $value) {

    $display = $_zp_exifvars[$field][3];

    if ($display) {

      $label = $_zp_exifvars[$field][2];

      echo "[*]$label: $valuen";

    }

  }       

}

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.

Member
Member
sbillard   13-08-2007, 22:30
#12

OK, I have this working correctly if I use printImageMetadata('Image Info', false);. however if I just use printImageMetadata(); I get the Image [strong]Info title[strong] but the toggle does not seem to toggle.

Anyone know what might be wrong?

Member
Member
dspnorman   16-08-2007, 01:08
#13

sbillard, the javascript with the toggle function is missing from the SVN. I've posted a fix here.

Member
Member
sbillard   16-08-2007, 17:39
#14

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 printImageMetaData to echo " n"; rather than echo " n";

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.

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