EXIF: add special handling for Pentax Model/Make pollution #44

Merged
minnozz merged 1 commits from pentax-exif into master 2024-01-13 17:22:49 +01:00

View File

@ -90,7 +90,9 @@ class EXIF
if (!empty($exif['Model'])) 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']); $meta['camera'] = trim($exif['Make']) . ' ' . trim($exif['Model']);
else else
$meta['camera'] = trim($exif['Model']); $meta['camera'] = trim($exif['Model']);