php,unix命令,imagick,溢出

php,unix命令,imagick,溢出,php,unix,command,imagick,Php,Unix,Command,Imagick,这是向图像添加文本 echo system('convert mug.jpg -font courier -fill green -pointsize 30 -annotate +100+230 \'hi Wlecome yy\' mug123.jpg'); unix命令在php中运行。当我们更改点大小时,它工作正常。欢迎在图像上运行 我们怎么过来呢?你想在一个小图像上加一行大的文字吗?我想它会溢出来的。你可以把两行文字一行放在另一行下面 但是,由于您是在PHP中执行此操作的,因此我建议您

这是向图像添加文本

echo system('convert mug.jpg -font courier -fill green -pointsize 30 -annotate +100+230 \'hi Wlecome yy\'   mug123.jpg');
unix命令在php中运行。当我们更改点大小时,它工作正常。欢迎在图像上运行


我们怎么过来呢?

你想在一个小图像上加一行大的文字吗?我想它会溢出来的。你可以把两行文字一行放在另一行下面

但是,由于您是在PHP中执行此操作的,因此我建议您使用像imagemagick这样的图像库,而不是使用shell for imagemagick