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

DrawLine with unwanted colors (Imagick) #1347

Closed
olivervogel opened this issue May 5, 2024 · 0 comments · Fixed by #1348
Closed

DrawLine with unwanted colors (Imagick) #1347

olivervogel opened this issue May 5, 2024 · 0 comments · Fixed by #1348
Assignees

Comments

@olivervogel
Copy link
Member

olivervogel commented May 5, 2024

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:

  • PHP Version: PHP 8.3
  • OS: MacOS
  • Intervention Image Version: 3.6.3
  • GD or Imagick: Imagick
@olivervogel olivervogel self-assigned this May 5, 2024
@olivervogel olivervogel changed the title DrawLine with unwanted colors DrawLine with unwanted colors (Imagick) May 5, 2024
@olivervogel olivervogel linked a pull request May 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant