From 00c98565066b1e9eb36cd5fdf2355c3678ba69da Mon Sep 17 00:00:00 2001 From: guizoxxv Date: Sun, 16 May 2021 11:53:53 -0300 Subject: [PATCH] [feat]: Renaming without resizing --- src/MultiSizeImage.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/MultiSizeImage.php b/src/MultiSizeImage.php index 7bf927a..dcbab9c 100644 --- a/src/MultiSizeImage.php +++ b/src/MultiSizeImage.php @@ -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) {