Merge pull request #3400 from jedateach/fixes/imagick-crop-notice

FIX: Image_Backend -> croppedResize function doesn't include a backgroundColor
This commit is contained in:
Sean Harvey 2014-08-19 13:34:47 +12:00
commit ef272be0db

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),