File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
app/code/Magento/Cms/Model/Wysiwyg/Images Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -724,13 +724,10 @@ public function resizeFile($source, $keepRatio = true)
724
724
[$ imageWidth , $ imageHeight ] = $ this ->getResizedParams ($ source );
725
725
try {
726
726
$ image ->resize ($ imageWidth , $ imageHeight );
727
- }
728
- catch (\Throwable $ e )
729
- {
730
- $ this ->logger ->critical ( 'FAILED WYSIWYG IMAGE RESIZING: ' . ' error: ' . $ e ->getMessage () . '. path: ' . $ realPath );
727
+ } catch (\Throwable $ e ) {
728
+ $ this ->logger ->critical ('FAILED WYSIWYG IMAGE RESIZING: ' . ' error: ' . $ e ->getMessage () . '. path: ' . $ realPath );
731
729
return false ;
732
730
}
733
- $ image ->resize ($ imageWidth , $ imageHeight );
734
731
$ dest = $ targetDir . '/ ' . $ this ->ioFile ->getPathInfo ($ source )['basename ' ];
735
732
$ image ->save ($ dest );
736
733
if ($ this ->_directory ->isFile ($ this ->_directory ->getRelativePath ($ dest ))) {
You can’t perform that action at this time.
0 commit comments