Skip to content

Commit

Permalink
Fix bug in ResizeCanvasModifier::class
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Aug 16, 2024
1 parent 21cb93d commit 1786ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Imagick/Modifiers/ResizeCanvasModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1786ad5

Please sign in to comment.