Skip to content

Commit ac12fb6

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 534d514 commit ac12fb6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,7 @@ public function resizeFile($source, $keepRatio = true)
722722
$image->keepAspectRatio($keepRatio);
723723

724724
[$imageWidth, $imageHeight] = $this->getResizedParams($source);
725+
725726
$image->resize($imageWidth, $imageHeight);
726727
$dest = $targetDir . '/' . $this->ioFile->getPathInfo($source)['basename'];
727728
$image->save($dest);

0 commit comments

Comments
 (0)