Skip to content

Weird borders using mask() with Imagick #791

@billmn

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

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