打開(kāi)/include/helpers/image.helper.php文件
找到
@$ni = imagecreateTRUEcolor($ftoW,$ftoH);
在它下面加入
$color = imagecolorAllocate($ni,255,255,255);   
//分配一個(gè)白色的背景 imagefill($ni,0,0,$color);                
// 從左上角開(kāi)始填充白色