EXIF: add special handling for Pentax Model/Make pollution

This commit is contained in:
Aaron van Geffen 2024-01-11 18:45:22 +01:00
parent 507357ba59
commit f9ab90e925

View File

@ -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']);