Skip to content

Commit

Permalink
Fix offset coordinates for CropModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Oct 23, 2023
1 parent 6d744bf commit 90a650e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Drivers/Gd/Modifiers/CropModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 90a650e

Please sign in to comment.