Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Update MediaStorage.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bayareawebpro committed May 27, 2021
1 parent 12bb8c0 commit 6028ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MediaStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function resize(UploadedFile $file): array
// Resize the image.
$image = Image::make($file->getRealPath());
if ($image->width() > $maxWidth || $image->height() > $maxHeight) {
$image->fit($maxWidth, $maxHeight, function (Constraint $constraint) {
$image->resize($maxWidth, $maxHeight, function (Constraint $constraint) {
$constraint->aspectRatio();
$constraint->upsize();
});
Expand Down

0 comments on commit 6028ee7

Please sign in to comment.