1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-01 18:02:45 +02:00

Draw lines antialiased with gd driver

This commit is contained in:
Oliver Vogel
2023-12-12 18:45:54 +01:00
parent f6e4d0dda4
commit 2622255af8

View File

@@ -16,6 +16,7 @@ class DrawLineModifier extends AbstractDrawModifier
public function apply(ImageInterface $image): ImageInterface public function apply(ImageInterface $image): ImageInterface
{ {
foreach ($image as $frame) { foreach ($image as $frame) {
imageantialias($frame->native(), true);
imageline( imageline(
$frame->native(), $frame->native(),
$this->drawable->start()->x(), $this->drawable->start()->x(),