File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Cms/Model/Wysiwyg/Images Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -636,8 +636,8 @@ public function resizeFile($source, $keepRatio = true)
636
636
if ($ imageWidth && $ imageHeight ) {
637
637
$ configWidth = $ this ->_resizeParameters ['width ' ];
638
638
$ 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 ;
641
641
} else {
642
642
$ imageWidth = $ this ->_resizeParameters ['width ' ];
643
643
$ imageHeight = $ this ->_resizeParameters ['height ' ];
You can’t perform that action at this time.
0 commit comments