Image.php文件,第266 267行,改为以下代码可达到目的 $alpha = imagecolorallocatealpha($img, 0, 0, 0, 127); imagefill($img, 0, 0, $alpha);