0.4.1
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user