Skip to content

Commit 79b8895

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 18dddc7 commit 79b8895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Image/Adapter/AbstractAdapter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ protected function _checkDimensions($frameWidth, $frameHeight)
628628
{
629629
if ($frameWidth !== null && $frameWidth <= 0 ||
630630
$frameHeight !== null && $frameHeight <= 0 ||
631-
($frameWidth === '' && $frameHeight === '')
631+
($frameWidth === null && $frameHeight === null)
632632
) {
633633
//phpcs:ignore Magento2.Exceptions.DirectThrow
634634
throw new \InvalidArgumentException('Invalid image dimensions.');

0 commit comments

Comments
 (0)