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
或者: 如果imagefill需要超过X秒 取消链接 退出并出错 其他 继续使用imagefill
有什么想法吗?请帮忙。
答案 0 :(得分:0)
我最终切换到imagemagick。
- 快两倍。 - 使用更少的内存。 - 还有更多错误。