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) {