From e62812478dbd9e6c8957357b86f4abbffe2c9aa6 Mon Sep 17 00:00:00 2001 From: mostafaznv Date: Wed, 20 Dec 2023 09:34:29 +0330 Subject: [PATCH] fix: add center position to image crop process --- src/Storage/Image.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Storage/Image.php b/src/Storage/Image.php index 7571f7b..5aa6cb0 100755 --- a/src/Storage/Image.php +++ b/src/Storage/Image.php @@ -195,7 +195,11 @@ private function resizeAuto(int $width = null, int $height = null): void */ private function resizeCrop(int $width, int $height): void { - $this->image->crop($width, $height); + $this->image->crop( + width: $width, + height: $height, + position: 'center' + ); } /**