Fixed saving JPEGs with Imagick destroyed resource
This commit is contained in:
parent
b4050b7b1d
commit
584d06a7f1
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue