From 6a5fa3dce62eca70930ce268978d852cf2e83e49 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 6 Mar 2016 18:44:39 +0100 Subject: [PATCH] fix typo in image driver lib calling for gmagik, reverse driver order reverse driver use : prefer performance and quality. Put GD latest if no better lib is available/installed. GD generates the worst image (quality wise) and has memory leaks. ImageMagick keeps quality, EXIF information and color profiles.Gmagik is a fork over Imagick (better performance). Generaly Imagick or GD are installed. --- lib/Pi/Application/Service/Image.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Pi/Application/Service/Image.php b/lib/Pi/Application/Service/Image.php index d136cedf44..15854894a4 100644 --- a/lib/Pi/Application/Service/Image.php +++ b/lib/Pi/Application/Service/Image.php @@ -215,17 +215,17 @@ public function getDriver($driver = '') break; case 'imagick': if (class_exists('Imagick')) { - $driverClass = 'Imagine\Gmagick\Imagine'; + $driverClass = 'Imagine\Imagick\Imagine'; } break; case 'auto': default: - if (function_exists('gd_info')) { - $driverClass = 'Imagine\Gd\Imagine'; - } elseif (class_exists('Gmagick')) { + if (class_exists('Gmagick')) { $driverClass = 'Imagine\Gmagick\Imagine'; } elseif (class_exists('Imagick')) { - $driverClass = 'Imagine\Gmagick\Imagine'; + $driverClass = 'Imagine\Imagick\Imagine'; + } elseif (function_exists('gd_info')) { + $driverClass = 'Imagine\Gd\Imagine'; } break; }