Skip to content

Commit 534d514

Browse files
Chhandak.BaruaChhandak.Barua
Chhandak.Barua
authored and
Chhandak.Barua
committed
ACP2E-3127: imagecreatetruecolor(): Argument #2 () must be greater than 0. Can't upload specific image
1 parent 3c2cf7e commit 534d514

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -723,14 +723,6 @@ public function resizeFile($source, $keepRatio = true)
723723

724724
[$imageWidth, $imageHeight] = $this->getResizedParams($source);
725725
$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-
// }
734726
$dest = $targetDir . '/' . $this->ioFile->getPathInfo($source)['basename'];
735727
$image->save($dest);
736728
if ($this->_directory->isFile($this->_directory->getRelativePath($dest))) {

0 commit comments

Comments
 (0)