From 90a650eb944a3e7455c48b4cdd70df78f3d3ffdf Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Mon, 23 Oct 2023 16:08:45 +0200 Subject: [PATCH] Fix offset coordinates for CropModifier --- src/Drivers/Gd/Modifiers/CropModifier.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Drivers/Gd/Modifiers/CropModifier.php b/src/Drivers/Gd/Modifiers/CropModifier.php index 181df9f4..c32c1664 100644 --- a/src/Drivers/Gd/Modifiers/CropModifier.php +++ b/src/Drivers/Gd/Modifiers/CropModifier.php @@ -62,8 +62,8 @@ protected function cropFrame(FrameInterface $frame, SizeInterface $resizeTo): vo $current, 0, 0, - $resizeTo->getPivot()->getX(), - $resizeTo->getPivot()->getY(), + $resizeTo->getPivot()->getX() + $this->offset_x, + $resizeTo->getPivot()->getY() + $this->offset_y, $resizeTo->getWidth(), $resizeTo->getHeight(), $resizeTo->getWidth(),