芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/fmd/vendor/intervention/image/src/Intervention/Image/Imagick/Driver.php
coreAvailable()) { throw new \Intervention\Image\Exception\NotSupportedException( "ImageMagick module not available with this PHP installation." ); } $this->decoder = $decoder ? $decoder : new Decoder; $this->encoder = $encoder ? $encoder : new Encoder; } /** * Creates new image instance * * @param integer $width * @param integer $height * @param mixed $background * @return \Intervention\Image\Image */ public function newImage($width, $height, $background = null) { $background = new Color($background); // create empty core $core = new \Imagick; $core->newImage($width, $height, $background->getPixel(), 'png'); $core->setType(\Imagick::IMGTYPE_UNDEFINED); $core->setImageType(\Imagick::IMGTYPE_UNDEFINED); $core->setColorspace(\Imagick::COLORSPACE_UNDEFINED); // build image $image = new \Intervention\Image\Image(new static, $core); return $image; } /** * Reads given string into color object * * @param string $value * @return AbstractColor */ public function parseColor($value) { return new Color($value); } /** * Checks if core module installation is available * * @return boolean */ protected function coreAvailable() { return (extension_loaded('imagick') && class_exists('Imagick')); } }