exif module for any theme (stopdesign already done here)

i was working on getting exif integrated in my gallery today and ended up making something more modular than other solutions i've seen posted. this solution cannabalizes on work done in the thinkdreams theme, and also in the other exif thread. so credit goes to those who have already paved the way.

http://citrusandroid.com/exif.zip
the required files are there. to integrate them into stopdesign, just place all 3 files into the stopdesign theme folder, and overwrite the image.php file.** others who wish to integrate exif into the them should find it pretty easy to figure out.

the function to print the exif data is <?php printExifData(); ?>, and you'll obviously need to include the exif-functions.php as well in your theme.

if there is enough interest, i can make this module much more...modular, so that you could do a call to something like printExifData("date"), and printExifData("fstop"). i was going to take this extra step earlier today, but i'm not sure how far along exif is in zenphoto, and also how much of a demand there is for it.

note: there is one extra change to the image.php file aside from exif integration, i added a "Full Sized Original" link below the image description.

**note note: if your zenphoto install is on the root directory, then you need to make a change in exif-functions.php; line 8...
`$url = '..' . $path; // CHANGE THIS TO $url = '.' . $path; IF YOUR ZENPHOTO INSTALLATION IS AT THE BASE DIRECTORY`

Comments

  • works like a charm! thanks :¬)
  • >works like a charm! thanks :¬)
    Indeed! Great improvement to zp!
    pearofducks, you suggest further modularization to your script - wouldn´t that make sorting exif data much easier? Your script seems to read exif data in the given order - am I right?
  • if there was interest from the theming community i was going to make it so function calls and such were easier to do than they are, and so the script could be integrated with less effort. but it seems like most themers are doing their own implementations.
  • I think most people are doing there own EXIF implementations because there is nothing better out there. If there was one robust implementation of EXIF, I am sure most of us would stop writing our own and just use that one. I know I would.
  • As zp user not coder - I´d wish exif functions that may easily be integrated to a site template (e.g. an array like <?php exifcamera:exifmetering:exifiso:... ).
    An extension of exif functions would be great - as I mentioned something like camera model, metering mode etc.
  • Hello,

    I am a newbie with css and php,

    In:
    **note note: if your zenphoto install is on the root directory, then you need to make a change in exif-functions.php; line 8...
    $url = '..' . $path; // CHANGE THIS TO $url = '.' . $path; IF YOUR ZENPHOTO INSTALLATION IS AT THE BASE DIRECTORY

    What is the url please, i don't understand sorry.

    Thanks a lot for your answers.
  • Quite simple I suppose:
    Remove one dot from $url = '..' . $path;
    and you get $url = '.' . $path;

    Have a close look.

    So you get
    $url = '.' . $path; // CHANGE THIS TO $url = '.' . $path; IF YOUR ZENPHOTO INSTALLATION IS AT THE BASE DIRECTORY

    You may delete everything after and the // - it's just an instruction. So

    $url = '.' . $path;

    should work either.
  • The link to the zip file is down, anybody could provide a replacement mirror ?
Sign In or Register to comment.