Skip to content

Commit

Permalink
fix: add center position to image crop process
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaznv committed Dec 20, 2023
1 parent 42c71d5 commit e628124
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Storage/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
}

/**
Expand Down

0 comments on commit e628124

Please sign in to comment.