Trim on exif model and make (#136)
This commit is contained in:
parent
543381a24d
commit
8e711cde87
@ -460,10 +460,10 @@ class Photo extends Module {
|
|||||||
if (isset($temp)) $return['aperture'] = $temp;
|
if (isset($temp)) $return['aperture'] = $temp;
|
||||||
|
|
||||||
$temp = @$exif['Make'];
|
$temp = @$exif['Make'];
|
||||||
if (isset($temp)) $return['make'] = $exif['Make'];
|
if (isset($temp)) $return['make'] = trim($temp);
|
||||||
|
|
||||||
$temp = @$exif['Model'];
|
$temp = @$exif['Model'];
|
||||||
if (isset($temp)) $return['model'] = $temp;
|
if (isset($temp)) $return['model'] = trim($temp);
|
||||||
|
|
||||||
$temp = @$exif['ExposureTime'];
|
$temp = @$exif['ExposureTime'];
|
||||||
if (isset($temp)) $return['shutter'] = $exif['ExposureTime'] . ' Sec.';
|
if (isset($temp)) $return['shutter'] = $exif['ExposureTime'] . ' Sec.';
|
||||||
|
Loading…
Reference in New Issue
Block a user