forked from Public/pics
EXIF: prefer DateTimeOriginal over DateTimeDigitized
This commit is contained in:
parent
4863561129
commit
f2d8a32e67
@ -96,7 +96,9 @@ class EXIF
|
|||||||
elseif (!empty($exif['Make']))
|
elseif (!empty($exif['Make']))
|
||||||
$meta['camera'] = trim($exif['Make']);
|
$meta['camera'] = trim($exif['Make']);
|
||||||
|
|
||||||
if (!empty($exif['DateTimeDigitized']))
|
if (!empty($exif['DateTimeOriginal']))
|
||||||
|
$meta['created_timestamp'] = self::toUnixTime($exif['DateTimeOriginal']);
|
||||||
|
elseif (!empty($exif['DateTimeDigitized']))
|
||||||
$meta['created_timestamp'] = self::toUnixTime($exif['DateTimeDigitized']);
|
$meta['created_timestamp'] = self::toUnixTime($exif['DateTimeDigitized']);
|
||||||
|
|
||||||
return new self($meta);
|
return new self($meta);
|
||||||
|
Loading…
Reference in New Issue
Block a user