Skip to content

Commit

Permalink
Merge pull request #86 from Woeler/2.x
Browse files Browse the repository at this point in the history
[BUGFIX] Prevent float values from going into the crop function
  • Loading branch information
ctessier committed Dec 29, 2022
2 parents 9265855 + 49f8de5 commit 1223051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TransformableImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function transformImage(UploadedFile $uploadedFile, object $cropperData)
*/
private function cropImage(object $cropperData)
{
$this->image->crop($cropperData->width, $cropperData->height, $cropperData->left, $cropperData->top);
$this->image->crop((int) $cropperData->width, (int) $cropperData->height, (int) $cropperData->left, (int) $cropperData->top);
}

/**
Expand Down

0 comments on commit 1223051

Please sign in to comment.