From 1786ad5e1789050939d73cd195de4b8eaeeb34ed Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Fri, 16 Aug 2024 16:57:26 +0200 Subject: [PATCH] Fix bug in ResizeCanvasModifier::class --- src/Drivers/Imagick/Modifiers/ResizeCanvasModifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Drivers/Imagick/Modifiers/ResizeCanvasModifier.php b/src/Drivers/Imagick/Modifiers/ResizeCanvasModifier.php index be780dd9..3baf10d2 100644 --- a/src/Drivers/Imagick/Modifiers/ResizeCanvasModifier.php +++ b/src/Drivers/Imagick/Modifiers/ResizeCanvasModifier.php @@ -34,7 +34,7 @@ public function apply(ImageInterface $image): ImageInterface $draw->setFillColor($background); $delta_width = abs($resize->pivot()->x()); - $delta_height = abs($resize->pivot()->y()); + $delta_height = $resize->pivot()->y() * -1; if ($delta_width > 0) { $draw->rectangle(