Exemple #1
0
 protected function _mask($maskimage)
 {
     extract(parent::_mask($maskimage));
     $wmimage = new Fuel_Imagick();
     $wmimage->readImage($maskimage);
     $wmimage->setImageMatte(false);
     $this->imagick->compositeImage($wmimage, Fuel_Imagick::COMPOSITE_COPYOPACITY, 0, 0);
 }
Exemple #2
0
 protected function _mask($maskimage)
 {
     extract(parent::_mask($maskimage));
     $mimage = '"' . $maskimage . '"';
     $image = '"' . $this->image_temp . '"';
     $command = $image . ' ' . $mimage . ' +matte  -compose copy-opacity -composite ' . $image;
     $this->exec('convert', $command);
 }