From daa8565cec3f41481469750e8f1c4dc450d52ed3 Mon Sep 17 00:00:00 2001 From: Marcel <16748241+MajorApplePie@users.noreply.github.com> Date: Thu, 7 Jan 2021 13:37:17 +0100 Subject: [PATCH 1/2] #6 jpeg/exif support --- src/Detector.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Detector.php b/src/Detector.php index eee6b39..29e3de0 100644 --- a/src/Detector.php +++ b/src/Detector.php @@ -401,7 +401,9 @@ class Detector { protected static $signatures = [ // Images signatures - self::JPEG => [[0 => [0xFF, 0xD8, 0xFF, 0xE0]]], + self::JPEG => [ + [0 => [0xFF, 0xD8, 0xFF, 0xE0]], + [0 => [0xFF, 0xD8, 0xFF, 0xE1]], self::BMP => [[0 => [0x42, 0x4D]]], self::GIF => [ [0 => [0x47, 0x49, 0x46, 0x38, 0x37, 0x61]], From f688f01104a34aef74798e7da87002e8e648a256 Mon Sep 17 00:00:00 2001 From: Marcel <16748241+MajorApplePie@users.noreply.github.com> Date: Thu, 7 Jan 2021 13:53:10 +0100 Subject: [PATCH 2/2] Missing closing bracket --- src/Detector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Detector.php b/src/Detector.php index 29e3de0..986830b 100644 --- a/src/Detector.php +++ b/src/Detector.php @@ -403,7 +403,7 @@ class Detector { // Images signatures self::JPEG => [ [0 => [0xFF, 0xD8, 0xFF, 0xE0]], - [0 => [0xFF, 0xD8, 0xFF, 0xE1]], + [0 => [0xFF, 0xD8, 0xFF, 0xE1]]], self::BMP => [[0 => [0x42, 0x4D]]], self::GIF => [ [0 => [0x47, 0x49, 0x46, 0x38, 0x37, 0x61]],