image icon indicating copy to clipboard operation
image copied to clipboard

Weird borders using mask() with Imagick

Open billmn opened this issue 7 years ago • 0 comments

I notice some weird dark borders applying mask using Imagick. Using GD, mask is very slow but borders seems ok.

Thought?

This is the code:

$image = Image::make('image.png');
$cutContour = Image::make('cut_contour.png');

$image->mask($cutContour, true);

return $image->response();

These are the original images:

image.png: https://pasteboard.co/GOrgBx4.png cut_contour.png: https://pasteboard.co/GOrgUf2.png


Result with Imagick

imagick

Result with GD

gd

billmn avatar Oct 11 '17 13:10 billmn