diff --git a/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml b/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml index 33f7620f1a1f5..60295090f1668 100644 --- a/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml +++ b/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml @@ -13,7 +13,7 @@ escapeHtmlAttr($block->getCustomAttributes()) ?> src="escapeUrl($block->getImageUrl()) ?>" - max-width="escapeHtmlAttr($block->getWidth()) ?>" - max-height="escapeHtmlAttr($block->getHeight()) ?>" + width="escapeHtmlAttr($block->getWidth()) ?>" + height="escapeHtmlAttr($block->getHeight()) ?>" alt="stripTags($block->getLabel(), null, true) ?>"/>