diff --git a/Helper/Media.php b/Helper/Media.php index 95e0558..05d70d7 100644 --- a/Helper/Media.php +++ b/Helper/Media.php @@ -201,7 +201,7 @@ public function resizeImage($file, $size, $type = '', $keepRatio = true) $mediaDirectory = $this->getMediaDirectory(); if ($mediaDirectory->isFile($resizeImage)) { $image = $resizeImage; - } elseif (!$mediaDirectory->isExist($mediaDirectory->getAbsolutePath($image))) { + } elseif ($mediaDirectory->isExist($mediaDirectory->getAbsolutePath($image))) { $imageResize = $this->imageFactory->create(); $imageResize->open($mediaDirectory->getAbsolutePath($image)); $imageResize->constrainOnly(true);