forked from Public/pics
EXIF: add special handling for Pentax Model/Make pollution
This commit is contained in:
parent
507357ba59
commit
f9ab90e925
@ -90,7 +90,9 @@ class EXIF
|
||||
|
||||
if (!empty($exif['Model']))
|
||||
{
|
||||
if (!empty($exif['Make']) && strpos($exif['Model'], $exif['Make']) === false)
|
||||
if (strpos($exif['Model'], 'PENTAX') !== false)
|
||||
$meta['camera'] = trim($exif['Model']);
|
||||
elseif (!empty($exif['Make']) && strpos($exif['Model'], $exif['Make']) === false)
|
||||
$meta['camera'] = trim($exif['Make']) . ' ' . trim($exif['Model']);
|
||||
else
|
||||
$meta['camera'] = trim($exif['Model']);
|
||||
|
Loading…
Reference in New Issue
Block a user