Skip to content

Commit

Permalink
ACP2E-3127: imagecreatetruecolor(): Argument #2 () must be greater th…
Browse files Browse the repository at this point in the history
…an 0. Can't upload specific image
  • Loading branch information
Chhandak.Barua authored and Chhandak.Barua committed Jul 22, 2024
1 parent c96c27e commit 53080dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/Magento/Cms/Model/Wysiwyg/Images/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,9 @@ public function resizeFile($source, $keepRatio = true)
try {
$image->resize($imageWidth, $imageHeight);
} catch (\Throwable $e) {
$this->logger->critical('FAILED WYSIWYG IMAGE RESIZING: ' . ' error: ' . $e->getMessage() . '. path: ' . $realPath);
$this->logger->critical(
'FAILED WYSIWYG IMAGE RESIZING: ' . ' error: ' . $e->getMessage() . '. path: ' . $realPath
);
return false;
}
$dest = $targetDir . '/' . $this->ioFile->getPathInfo($source)['basename'];
Expand Down

0 comments on commit 53080dc

Please sign in to comment.