EXIF: prefer DateTimeOriginal over DateTimeDigitized #27

Merged
Roflin merged 1 commits from exif-date-time-original into master 2022-02-16 21:56:05 +01:00
Showing only changes of commit f2d8a32e67 - Show all commits

View File

@ -96,7 +96,9 @@ class EXIF
elseif (!empty($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']);
return new self($meta);