Update Image.php
Update Image.php

Utils::isJPGResource and Utils::isPNGResource method require a string parameter.GD library can't obtain image type through resource.
joseluisq/gimage,quintana-dev/gimage,quintana-dev/gimage