[英]Convert GD image back to binary data
I have a GD image resource created from imagecreatefromstring
. 我有一个从
imagecreatefromstring
创建的GD图像资源。 After some image operations, I want to convert it back to binary data. 经过一些图像操作后,我想将其转换回二进制数据。 How would I do this?
我该怎么做? Can't see any functions in the manual...
看不到手册中的任何功能......
function image_data($gdimage)
{
ob_start();
imagejpeg($gdimage);
return(ob_get_clean());
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.