Skip to content

Commit 0cf63ee

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function buildBlock($product, $displayArea)
151151
'label' => $label,
152152
'ratio' => ($width && $height) ? $height / $width : 1,
153153
'resized_image_width' => empty($resizedInfo['width']) ? $width : $resizedInfo['width'],
154-
'resized_image_height' => empty($resizedInfo['height']) ? $width : $resizedInfo['height'],
154+
'resized_image_height' => empty($resizedInfo['height']) ? $height : $resizedInfo['height'],
155155
],
156156
];
157157

0 commit comments

Comments
 (0)