Skip to content

Commit fce4c28

Browse files
committed
Small improvements
1 parent 049a575 commit fce4c28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,8 @@ public function resizeFile($source, $keepRatio = true)
636636
if ($imageWidth && $imageHeight) {
637637
$configWidth = $this->_resizeParameters['width'];
638638
$configHeight = $this->_resizeParameters['height'];
639-
$imageWidth = $configWidth > $imageWidth ? $imageWidth : $this->_resizeParameters['width'];
640-
$imageHeight = $configHeight > $imageHeight ? $imageHeight : $this->_resizeParameters['height'];
639+
$imageWidth = $configWidth > $imageWidth ? $imageWidth : $configWidth;
640+
$imageHeight = $configHeight > $imageHeight ? $imageHeight : $configHeight;
641641
} else {
642642
$imageWidth = $this->_resizeParameters['width'];
643643
$imageHeight = $this->_resizeParameters['height'];

0 commit comments

Comments
 (0)