changeset 29:8cf743c7ea23

Add focal length and lens model display.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 17 Apr 2016 13:59:39 +0300
parents 2d8112d6c3bc
children f2c21a8b9071
files mgallery.php mgtool.php
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mgallery.php	Sat Jan 16 02:18:10 2016 +0200
+++ b/mgallery.php	Sun Apr 17 13:59:39 2016 +0300
@@ -357,6 +357,8 @@
     mgGetArr($data, "fnumber", "<span class=\"infoFNumber\"><b>f/%1</b></span>", NULL),
     mgGetArr($data, "exposure", "<span class=\"infoExposure\"><b>%1</b> sec</span>", NULL, NULL),
     mgGetArr($data, "iso", "<span class=\"infoISO\">ISO <b>%1</b></span>", NULL),
+    mgGetArr($data, "focallength", "<span class=\"infoFocalLength\">F-L <b>%1</b>mm</span>", NULL),
+    mgGetArr($data, "lensmodel", "<span class=\"infoLensModel\"><i>%1</i></span>", NULL),
   );
 
   echo
--- a/mgtool.php	Sat Jan 16 02:18:10 2016 +0200
+++ b/mgtool.php	Sun Apr 17 13:59:39 2016 +0300
@@ -20,6 +20,7 @@
   array(MG_DVA, "fnumber"     , "FNumber"),
   array(MG_DVA, "exposure"    , "ExposureTime"),
   array(MG_INT, "iso"         , "ISOSpeedRatings"),
+  array(MG_STR, "lensmodel"   , "UndefinedTag:0xA434"),
   array(MG_DVA, "focallength" , "FocalLength"),
   array(MG_STR, "datetime"    , "DateTimeOriginal"),
   array(MG_STR, "datetime"    , "DateTimeDigitized"),