我需要弯曲文本并将其放在另一张图片上。我从他们的网站上得到了下面提到的代码,但它不起作用;有人请告诉我如何在 php 中执行此操作。我的系统将支持 imagemagick 及其启用..
转换(newmug1.jpg -thumbnail 200x200 -write mpr:image +delete)\ (-pointsize 20 -fill red -background none label:"Cottenham horse show"-virtual-pixel transparent -distort arc 120 -write mpr:arc +delete )\ mpr:image mpr:arc -gravity north -composite combined.jpg
请帮帮我
感谢和问候
蒂斯蒙
最佳答案
使用 exec
命令 - http://php.net/manual/en/function.exec.php
exec('convert ( newmug1.jpg -thumbnail 200x200 -write mpr:image +delete ) \ ( -pointsize 20 -fill red -background none label:"Cottenham horse show" -virtual-pixel transparent -distort arc 120 -write mpr:arc +delete ) \ mpr:image mpr:arc -gravity north -composite combined.jpg');
关于php - 我如何在 php 中运行 imagemagick 命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3021521/