FIX: Image_Backend -> croppedResize function doesn't include a backgroundColor, therefore this shouldn't be assumed in ImageMagick->croppedResize

This commit is contained in:
Jeremy Shipman 2014-07-28 11:01:05 +12:00
parent a838e9bae6
commit bf3ad56674

View File

@ -247,12 +247,8 @@ class ImagickBackend extends Imagick implements Image_Backend {
return $this;
}
if(!$backgroundColor){
$backgroundColor = new ImagickPixel('transparent');
}
$new = clone $this;
$new->setBackgroundColor($backgroundColor);
$new->setBackgroundColor(new ImagickPixel('transparent'));
if(($geo['width']/$width) < ($geo['height']/$height)){
$new->cropImage($geo['width'], floor($height*$geo['width']/$width),