I wanted to display some exif data under my photos. I googled and googled and finally figured out, see code below, it’s my copy of singlepic.php file in nextgen-gallery/view folder. At the moment only with singlepic, still working to show it in albums. Any comments and corrections appreciated.
< ?php /** Template Page for the single pic Follow variables are useable : $image : Contain all about the image $meta : Contain the raw Meta data from the image $exif : Contain the clean up Exif data $iptc : Contain the clean up IPTC data $xmp : Contain the clean up XMP data You can check the content when you insert the tag If you would like to show the timestamp of the image ,you can use < ?php echo $exif['created_timestamp'] ?> **/ ?> < ?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?>< ?php if (!empty ($image)) : ?> <a title="< ?php echo $image->linktitle ?> < ?php echo $exif['camera'] ?>, < ?php echo $exif['aperture'] ?> & < ?php echo $exif['shutter_speed'] ?>, < ?php echo $exif['focal_length'] ?>, ISO < ?php echo $exif['iso'] ?>, < ?php echo $exif['created_timestamp'] ?> < ?php echo $exif['flash'] ?> " href="<?php echo $image->imageURL ?>">< ?php echo $image->thumbcode ?> > <img class="<?php echo $image-/>classname ?>" title="< ?php echo $image->alttext ?>" src="< ?php echo $image->thumbnailURL ?>" alt="< ?php echo $image->alttext ?>" /> </a> < ?php if (!empty ($image->caption)) : ?><span>< ?php echo $image->caption ?></span>< ?php endif; ?> < ?php endif; ?> |