imagetruecolortopalette($dst_image,true,$colorcount);
imagepalettecopy($dst_image,$src_image);
$transparentcolor = imagecolortransparent($src_image);
imagefill($dst_image,0,0,$transparentcolor);
imagecolortransparent($dst_image,$transparentcolor);
所以我想要这样:如果imagefill失败拆开错误退出其他的继续使用imageffill
或者:如果imagefill需要超过X秒拆开错误退出其他的继续使用imageffill
任何想法?请帮助。
我最终切换到imagemagick
-快两倍。-使用更少的内存。