Skip to content

Commit

Permalink
[feat]: Renaming without resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
guizoxxv committed May 16, 2021
1 parent 799bdbf commit 00c9856
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/MultiSizeImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,10 @@ private function resizeImage(
$constraint->aspectRatio(); // maintain aspect ration
$constraint->upsize(); // prevent upsizing
});
}

$fileName = $fileName . "@{$size}.{$img->extension}";
} else {
$fileName = $fileName . ".{$img->extension}";
}
}

$fileName = $fileName . "@{$size}.{$img->extension}";

if ($outputPath) {
if ($basePath) {
Expand Down

0 comments on commit 00c9856

Please sign in to comment.