Plugin Directory

WP Gallery EXIF Reader

The data isn't displaying. I use an attachment.php or image.php file.

Just add <?php ec_get_image_exif(); ?> after the image dispaying code in your file.

Can I display exif data even if I'm not using the gallery shortcode?

Yes. The function ec_get_item_exif can take the url of the full-size image or the attachment ID as an argument.

Can I display data other than the default?

Uncomment //add_action('loop_start', 'ec_exif_reader_debug', 1)

The available data will display in an array at the top of the page. If it doesn't, add this to the top of the page:

<?php ec_exif_reader_debug(); ?>

Choose your data then add it to the list in the gallery-exif-reader.php file, in this form:

  1. $output .= "<li><span class=\"exifTitle\">Aperture</span> " . $exif_array['SubIFD']['ApertureValue'] . "</li>\n";
  2. echo "<li><span class=\"exifTitle\">Aperture</span> " . $exif_array['SubIFD']['ApertureValue'] . "</li>\n";

(1) is for ec_get_attachment_exif (2) is for ec_get_image_exif and ec_get_item_exif

Some of my images have no EXIF data. Will the plugin display an empty table?

No. The plugin checks for a value in the ['IFD0']['Model'] field of the array. If there's no value, the table doesn't display.

Can I change the way the date displays?

Yes. Change $exif_date using formatting from php.net/date.

Download

FYI


Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

Log in to vote.

100,2,2

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(1 ratings)