Skip to content

Commit 47f6159

Browse files
committed
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
1 parent 4f2ca37 commit 47f6159

File tree

1 file changed

+3
-1
lines changed
  • lib/internal/Magento/Framework/Image/Adapter

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,12 @@ public function checkAlpha($fileName)
324324
* Checks if image has alpha transparency
325325
*
326326
* @param resource $imageResource
327-
* @param int $fileType one of the constants IMAGETYPE_*
327+
* @param int $fileType
328328
* @param bool &$isAlpha
329329
* @param bool &$isTrueColor
330+
*
330331
* @return boolean
332+
*
331333
* @SuppressWarnings(PHPMD.BooleanGetMethodName)
332334
*/
333335
private function _getTransparency($imageResource, $fileType, &$isAlpha = false, &$isTrueColor = false)

0 commit comments

Comments
 (0)