From c8d7dc42f751d4ce4819292c09cbf16dcc7a6004 Mon Sep 17 00:00:00 2001 From: Samuel Demirdjian Date: Fri, 28 Nov 2014 11:10:25 +0200 Subject: [PATCH] add jpe extension as IMAGETYPE_JPEG --- classes/Kohana/Image/GD.php | 1 + classes/Kohana/Image/Imagick.php | 1 + 2 files changed, 2 insertions(+) diff --git a/classes/Kohana/Image/GD.php b/classes/Kohana/Image/GD.php index e9c7988..5b52cab 100644 --- a/classes/Kohana/Image/GD.php +++ b/classes/Kohana/Image/GD.php @@ -611,6 +611,7 @@ class Kohana_Image_GD extends Image { switch (strtolower($extension)) { case 'jpg': + case 'jpe': case 'jpeg': // Save a JPG file $save = 'imagejpeg'; diff --git a/classes/Kohana/Image/Imagick.php b/classes/Kohana/Image/Imagick.php index 21adbbf..aa060c2 100644 --- a/classes/Kohana/Image/Imagick.php +++ b/classes/Kohana/Image/Imagick.php @@ -314,6 +314,7 @@ class Kohana_Image_Imagick extends Image { switch ($format) { case 'jpg': + case 'jpe': case 'jpeg': $type = IMAGETYPE_JPEG; break; -- 2.11.4.GIT