We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2cf7e commit 534d514Copy full SHA for 534d514
app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php
@@ -723,14 +723,6 @@ public function resizeFile($source, $keepRatio = true)
723
724
[$imageWidth, $imageHeight] = $this->getResizedParams($source);
725
$image->resize($imageWidth, $imageHeight);
726
-// try {
727
-// $image->resize($imageWidth, $imageHeight);
728
-// } catch (\Throwable $e) {
729
-// $this->logger->critical(
730
-// 'FAILED WYSIWYG IMAGE RESIZING: ' . ' error: ' . $e->getMessage() . '. path: ' . $realPath
731
-// );
732
-// return false;
733
-// }
734
$dest = $targetDir . '/' . $this->ioFile->getPathInfo($source)['basename'];
735
$image->save($dest);
736
if ($this->_directory->isFile($this->_directory->getRelativePath($dest))) {
0 commit comments