Skip to content

Commit c0dc2be

Browse files
committed
MAGETWO-65480: [Backport] - [Performance] Image metadata caching - for 2.1.6
1 parent 4f29dff commit c0dc2be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Block/Product/ImageBlockBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ public function buildBlock($product, $displayArea)
150150
'height' => $height,
151151
'label' => $label,
152152
'ratio' => ($width && $height) ? $height / $width : 1,
153-
'resized_image_width' => $resizedInfo['width'],
154-
'resized_image_height' => $resizedInfo['height'],
153+
'resized_image_width' => empty($resizedInfo['width']) ? $width : $resizedInfo['width'],
154+
'resized_image_height' => empty($resizedInfo['height']) ? $width : $resizedInfo['height'],
155155
],
156156
];
157157

0 commit comments

Comments
 (0)