PhotoPage: show software used to edit photo
This commit is contained in:
@@ -12,6 +12,7 @@ class EXIF
|
||||
public $iso = 0;
|
||||
public $shutter_speed = 0;
|
||||
public $title = '';
|
||||
public $software = '';
|
||||
|
||||
private function __construct(array $meta)
|
||||
{
|
||||
@@ -35,6 +36,7 @@ class EXIF
|
||||
'iso' => 0,
|
||||
'shutter_speed' => 0,
|
||||
'title' => '',
|
||||
'software' => '',
|
||||
];
|
||||
|
||||
if (!function_exists('exif_read_data'))
|
||||
@@ -101,6 +103,9 @@ class EXIF
|
||||
elseif (!empty($exif['DateTimeDigitized']))
|
||||
$meta['created_timestamp'] = self::toUnixTime($exif['DateTimeDigitized']);
|
||||
|
||||
if (!empty($exif['Software']))
|
||||
$meta['software'] = $exif['Software'];
|
||||
|
||||
return new self($meta);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user