Skip to content

Commit

Permalink
fix: use cover method to create cropped version of images
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaznv committed Dec 20, 2023
1 parent e628124 commit a50b946
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Storage/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit a50b946

Please sign in to comment.