Skip to content

Commit

Permalink
MAGETWO-63599: [GitHub] catalog:images:resize = getimagesize(): Read …
Browse files Browse the repository at this point in the history
…error! in vendor/magento/module-catalog/Model/Product/Image.php on line 410 if an image is 0 bytes magento#8204

- Static test fixes
  • Loading branch information
vprohorov committed May 30, 2019
1 parent 4f2ca37 commit 47f6159
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/internal/Magento/Framework/Image/Adapter/Gd2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 47f6159

Please sign in to comment.