Intervention / image

PHP Image Processing
https://image.intervention.io
MIT License
13.88k stars 1.5k forks source link

DrawLine with unwanted colors (Imagick) #1347

Closed olivervogel closed 5 months ago

olivervogel commented 5 months ago

Describe the bug If you use the DrawLineModifer with the Imagick driver and draw a (semi) transparent line, an unwanted color is formed along the line.

Code Example

$image = $manager
    ->create(500, 500)
    ->fill('ff5500')
    ->drawLine(function (LineFactory $line) {
        $line->color('fff4');
        $line->from(100, 100);
        $line->to(400, 100);
        $line->width(40);
    });

Expected behavior Draw line without unwanted colors.

Images

Bildschirmfoto 2024-05-05 um 13 10 37

Environment: