PHP imagecreatefromjpeg($img)之类的函数返回出错,解决 可以用 imagecreatefromstring(file_get_contents($img))这个方法,而且也不用判断图片类型了