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.zipthe 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
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?
An extension of exif functions would be great - as I mentioned something like camera model, metering mode etc.
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.
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.