This commit is contained in:
2019-09-29 07:07:05 -07:00
parent 3695583eb6
commit 3481873653
5 changed files with 24 additions and 4 deletions

View File

@@ -1,5 +1,19 @@
<?php
function formatLens($e) {
if (!@$e['FocalLength'] || !@$e['FocalLength'] == "0.0 mm") { return ""; }
$fl = str_replace(" mm","",$e['FocalLength']);
if ($fl < 10) {
// this is a micro lens, perform fl conversion
$fl = $fl*9;
}
$string = "Wide";
if ($fl > 25) { $string = "Normal"; }
if ($fl > 50) { $string = "Tele"; }
if (strpos(@$e['LensModel']," front ") != false) { $string = "Front"; }
return $string;
}
function formatDateTime($e) {
if (@$e['DateTimeOriginal']) {
$dto = $e['DateTimeOriginal'];