【发布时间】:2011-02-21 19:17:36
【问题描述】:
这是给图片添加文字
echo system('convert mug.jpg -font courier -fill green -pointsize 30 -annotate +100+230 \'hi Wlecome yy\' mug123.jpg');
unix 命令在 php 中运行,当我们更改点大小时,它工作正常,欢迎使用图像溢出
我们怎样才能克服?
【问题讨论】:
这是给图片添加文字
echo system('convert mug.jpg -font courier -fill green -pointsize 30 -annotate +100+230 \'hi Wlecome yy\' mug123.jpg');
unix 命令在 php 中运行,当我们更改点大小时,它工作正常,欢迎使用图像溢出
我们怎样才能克服?
【问题讨论】:
您想要在小图片上放置一大行文字吗?我希望它会溢出。您可以将两行文本放在另一行下方。
但是,由于您是在 PHP 中执行此操作,我建议您使用像 GD 这样的图像库,而不是为 imagemagick 使用 shell。
【讨论】: