5 use \Intervention\Image\Size;
18 throw new \Intervention\Image\Exception\NotSupportedException(
19 "ImageMagick module not available with this PHP installation."
35 public function newImage($width, $height, $background =
null)
37 $background =
new Color($background);
41 $core->newImage($width, $height, $background->getPixel(),
'png');
42 $core->setType(\Imagick::IMGTYPE_UNDEFINED);
43 $core->setImagetype(\Imagick::IMGTYPE_UNDEFINED);
44 $core->setColorspace(\Imagick::COLORSPACE_UNDEFINED);
47 $image = new \Intervention\Image\Image(
new self, $core);
60 return new Color($value);
70 return (extension_loaded(
'imagick') && class_exists(
'Imagick'));