Part of the EllisLab Network

Plugin Information

Exif 1.0 third_party

Download
Author:
Lodewijk
Published:
Jul 20, 2005
Last Updated:
Dec 01, 2008
License:
Freeware
Categories:
Plugins  Add-On  Entries  
Gives the EXIF data for a given jpeg.

Requirements

PHP 4.2.0+ or PHP 5+, exif-enabled. Check your phpinfo for this.

Example Usage

{exp:exif image="http://yoursite.com/images/subfolder/my_image.jpg" root="/journal" show_all="no"}
<p>Taken on {date_taken} with a {camera}. The exposure was {exposure}, the aperture was {aperture}, focal length was {focal_length}, at an ISO speed of
{iso_speed}
.
{if flash == 0}Flash did not fire.{/if}
{if flash
> 0}Flash fired.{/if}</p>
{/exp:exif}

Notes

PARAMETERS

image=
image="http://yoursite.com/images/subfolder/my_image.jpg"
Full path to your image. Mandatory field.

root=
root="/"
Path to the directory where your index.php file is located, from the root. For example "/" if it's in the root itself, or "/journal" if it's in the journal directory. Defaults to "/".

show_all=
show_all="yes"
If set to "yes", ALL available exif data for the given image will be shown in a table. Everything between the pair tags is ignored (i.e. not parsed).


VARIABLES

All variables can be used as conditionals. However, if you use the plugin in combination with the Gallery Module version 1.0, any conditional variables inside the {exp:gallery:entries} tags will generate errors.

There are a couple of 'friendly' tags you can use, like:
{camera}
{exposure}
{aperture}
{focal_length}
{iso_speed}
{date_taken}
{width}
{height}
{size}

Other tags can vary per image, so check the show_all option to view all available tags.