Weird borders using mask() with Imagick · Issue #791 · Intervention/image · GitHub
Skip to content

Weird borders using mask() with Imagick #791

Open

Description

@billmn

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions