PHP imagecreatefromjpeg($img)之类的函数返回出错,解决

可以用 imagecreatefromstring(file_get_contents($img))这个方法,而且也不用判断图片类型了

原文地址:https://www.cnblogs.com/YueJinSanQian/p/9895784.html