From f9ab90e92501facfaec8569911d62001ea2e72ac Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Thu, 11 Jan 2024 18:45:22 +0100 Subject: [PATCH] EXIF: add special handling for Pentax Model/Make pollution --- models/EXIF.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/EXIF.php b/models/EXIF.php index 84108a5..0265611 100644 --- a/models/EXIF.php +++ b/models/EXIF.php @@ -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']); -- 2.46.0