1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 12:18:14 +01:00
This commit is contained in:
Oliver Vogel 2014-05-13 18:32:49 +02:00
parent 2c64b03169
commit 4878b6003e

View File

@ -37,7 +37,7 @@ class MaskCommand extends \Intervention\Image\Commands\AbstractCommand
// use red channel from mask ask alpha
$mask_alpha = clone $mask->getCore();
$mask_alpha->compositeImage($mask->getCore(), \Imagick::COMPOSITE_DEFAULT, 0, 0);
$mask_alpha->setImageAlphaChannel(\Imagick::ALPHACHANNEL_DEACTIVATE);
// $mask_alpha->setImageAlphaChannel(\Imagick::ALPHACHANNEL_DEACTIVATE);
$mask_alpha->separateImageChannel(\Imagick::CHANNEL_ALL);
// combine both alphas from original and mask