1
0
mirror of https://github.com/Intervention/image.git synced 2025-03-15 22:49:40 +01:00

Fix bug in ResizeCanvasModifier::class

This commit is contained in:
Oliver Vogel 2024-08-16 16:57:26 +02:00
parent 21cb93dcc6
commit 1786ad5e17
No known key found for this signature in database
GPG Key ID: 1B19D214C02D69BB

View File

@ -34,7 +34,7 @@ class ResizeCanvasModifier extends GenericResizeCanvasModifier implements Specia
$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(