From a50b946dce2e197c2728e583faa83c6592ecd433 Mon Sep 17 00:00:00 2001 From: mostafaznv Date: Wed, 20 Dec 2023 10:01:32 +0330 Subject: [PATCH] fix: use cover method to create cropped version of images --- src/Storage/Image.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Storage/Image.php b/src/Storage/Image.php index 5aa6cb0..36c0994 100755 --- a/src/Storage/Image.php +++ b/src/Storage/Image.php @@ -195,11 +195,7 @@ private function resizeAuto(int $width = null, int $height = null): void */ private function resizeCrop(int $width, int $height): void { - $this->image->crop( - width: $width, - height: $height, - position: 'center' - ); + $this->image->cover($width, $height); } /**