From 713c2d86d9335a9c681357254d4bc4f817626259 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 15 Apr 2012 21:44:31 +0200 Subject: Change EXIF metadata handling into a registered function This allows much greater flexibility from templates regarding EXIF metadata handling, no more hardcoded symbols. It's possible to display essentially any attribute known to Exiv2. Please see http://exiv2.org/metadata.html This brings two new functions that can be called from templates: * get_exif_value (exiv2_attribute) * get_exif_value_fixed (exiv2_attribute) Both functions take a string argument of metadata attribute name from Exiv2 namespace. The difference is that get_exif_value_fixed() does some extra formatting for several basic attributes (e.g. datetime format). --- templates/template_picture.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'templates') diff --git a/templates/template_picture.html b/templates/template_picture.html index 973ef2b..07c79ec 100644 --- a/templates/template_picture.html +++ b/templates/template_picture.html @@ -20,7 +20,7 @@ < Previous :: Next > - + @@ -47,13 +47,13 @@
-- cgit v1.2.3