[PHP]代码
<?php $fileurl = '1.png';
header("Content-type: image/png");
$img = imagecreatefrompng($fileurl);
imagealphablending($img,false); //(取消)注释此段代码验证输出
imagesavealpha($img,true); //(取消)注释此段代码验证输出
imagepng($img);
imagedestroy($img);
/*End of php*/
使用官方Model Context Protocol PHP SDK将PHP应用程序功能暴露为MCP工具、资源和提示,用于代理工作流。










