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)
724724 [$ imageWidth , $ imageHeight ] = $ this ->getResizedParams ($ source );
725725 try {
726726 $ 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 );
731729 return false ;
732730 }
733- $ image ->resize ($ imageWidth , $ imageHeight );
734731 $ dest = $ targetDir . '/ ' . $ this ->ioFile ->getPathInfo ($ source )['basename ' ];
735732 $ image ->save ($ dest );
736733 if ($ this ->_directory ->isFile ($ this ->_directory ->getRelativePath ($ dest ))) {
You can’t perform that action at this time.
0 commit comments