php,unix命令,imagick,溢出 [英] php,unix command ,imagick ,overflow

查看:178
本文介绍了php,unix命令,imagick,溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是将文字新增到图片

  echo system('convert mug.jpg -font courier -fill green -pointsize 30 -annotate + 100 + 230 \'hi Wlecome yy \'mug123.jpg'); 

unix命令在php中运行,当我们改变点大小时,它工作正常hi welcome is over flow

解决方案

大行文本在一个小图像顶部?我希望它溢出。你可以把两行文本放在另一个下面。



但是,由于您在PHP中这样做,我建议您使用图像库,例如 GD ,而不是shellmagick。


This is Add text to image

echo system('convert mug.jpg -font courier -fill green -pointsize 30 -annotate +100+230 \'hi Wlecome yy\'   mug123.jpg');

unix command run in php it is working fine when we change the point size hi welcome is over flow the image

how can we over come?

解决方案

You want a large line of text on top of a small image? I'd expect it to overflow. You could put two lines of text one below the other.

However, since you're doing this in PHP, I'd recommend you use an image library like GD rather than shell out for imagemagick.

这篇关于php,unix命令,imagick,溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆