From 47f615952a20493cc2c0995d69d9eb8b91eae29f Mon Sep 17 00:00:00 2001 From: vprohorov Date: Thu, 30 May 2019 17:59:58 +0300 Subject: [PATCH] MAGETWO-63599: [GitHub] catalog:images:resize = getimagesize(): Read error! in vendor/magento/module-catalog/Model/Product/Image.php on line 410 if an image is 0 bytes #8204 - Static test fixes --- lib/internal/Magento/Framework/Image/Adapter/Gd2.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/Image/Adapter/Gd2.php b/lib/internal/Magento/Framework/Image/Adapter/Gd2.php index d423fcfc6773a..df6c7652758c3 100644 --- a/lib/internal/Magento/Framework/Image/Adapter/Gd2.php +++ b/lib/internal/Magento/Framework/Image/Adapter/Gd2.php @@ -324,10 +324,12 @@ public function checkAlpha($fileName) * Checks if image has alpha transparency * * @param resource $imageResource - * @param int $fileType one of the constants IMAGETYPE_* + * @param int $fileType * @param bool &$isAlpha * @param bool &$isTrueColor + * * @return boolean + * * @SuppressWarnings(PHPMD.BooleanGetMethodName) */ private function _getTransparency($imageResource, $fileType, &$isAlpha = false, &$isTrueColor = false)