From 399a648ed8b218940380329505fae041e58fe996 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 11 Nov 2014 18:17:53 +0100 Subject: [PATCH] Whaaat another bugfix This is getting stupid --- src/Services/ImageManipulation/ImagickImageManipulator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Services/ImageManipulation/ImagickImageManipulator.php b/src/Services/ImageManipulation/ImagickImageManipulator.php index da530cfa..d2e189cb 100644 --- a/src/Services/ImageManipulation/ImagickImageManipulator.php +++ b/src/Services/ImageManipulation/ImagickImageManipulator.php @@ -9,7 +9,8 @@ class ImagickImageManipulator implements IImageManipulator { $image = new \Imagick(); $image->readImageBlob($source); - $image = $image->coalesceImages(); + if ($image->getImageFormat() == 'GIF') + $image = $image->coalesceImages(); return $image; } catch (\Exception $e)