Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird borders using mask() with Imagick #791

Open
billmn opened this issue Oct 11, 2017 · 0 comments
Open

Weird borders using mask() with Imagick #791

billmn opened this issue Oct 11, 2017 · 0 comments

Comments

@billmn
Copy link
Contributor

billmn commented Oct 11, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant