mirror of
https://github.com/Intervention/image.git
synced 2025-01-17 12:18:14 +01:00
fix
This commit is contained in:
parent
2c64b03169
commit
4878b6003e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user