Skip to content

Commit 8266e08

Browse files
committed
fix: WebP image size
1 parent e31bb7d commit 8266e08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Model/Resize.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,10 @@ protected function getResizedImageUrl(): string
391391
$relativePath = $this->getRelativePathResizedImage();
392392
if ($this->config->isWebpEnabled()) {
393393
$relativePath = $this->webpConvertor->getWebPImage($relativePath);
394+
} else {
395+
$relativePath = $this->getRelativePathResizedImage();
394396
}
395397

396-
$relativePath = $this->getRelativePathResizedImage();
397398
if ($this->mediaDirectoryRead->isFile($relativePath)) {
398399
return $this->storeManager->getStore()->getBaseUrl(UrlInterface::URL_TYPE_MEDIA) . $relativePath;
399400
}

0 commit comments

Comments
 (0)