php,unix command ,imagick ,overflow

↘锁芯ラ 提交于 2019-12-12 06:46:46

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/2872833/php-unix-command-imagick-overflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!