企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 海报生成 ### 命令行生成 ` php think canvas:create ` <font color=red>生成带默认数据以及注释的模板</font> ` php think canvas:create --clear ` <font color=red>生成简洁模板</font> ### 实例实用 ``` $canvas = (new Canvas(Poster2::class))->initCanvas(); $response = Response::create($canvas->encode('png')); $response->header([ 'Content-Type'=>'image/png' ]); return $response; ````