From 584d06a7f1f22d2b1474ead23eed2bb503791b68 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 11 Nov 2014 14:19:46 +0100 Subject: [PATCH] Fixed saving JPEGs with Imagick destroyed resource --- src/Services/ImageManipulation/ImagickImageManipulator.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Services/ImageManipulation/ImagickImageManipulator.php b/src/Services/ImageManipulation/ImagickImageManipulator.php index 16fcf09a..da530cfa 100644 --- a/src/Services/ImageManipulation/ImagickImageManipulator.php +++ b/src/Services/ImageManipulation/ImagickImageManipulator.php @@ -47,7 +47,6 @@ class ImagickImageManipulator implements IImageManipulator $matte = new \Imagick(); $matte->newImage($imageResource->getImageWidth(), $imageResource->getImageHeight(), 'white'); $matte->compositeimage($imageResource, \Imagick::COMPOSITE_OVER, 0, 0); - $imageResource->destroy(); $imageResource = $matte; $imageResource->setImageFormat('jpeg'); break;