Skip to content

Commit 53080dc

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 c96c27e commit 53080dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,9 @@ public function resizeFile($source, $keepRatio = true)
725725
try {
726726
$image->resize($imageWidth, $imageHeight);
727727
} catch (\Throwable $e) {
728-
$this->logger->critical('FAILED WYSIWYG IMAGE RESIZING: ' . ' error: ' . $e->getMessage() . '. path: ' . $realPath);
728+
$this->logger->critical(
729+
'FAILED WYSIWYG IMAGE RESIZING: ' . ' error: ' . $e->getMessage() . '. path: ' . $realPath
730+
);
729731
return false;
730732
}
731733
$dest = $targetDir . '/' . $this->ioFile->getPathInfo($source)['basename'];

0 commit comments

Comments
 (0)