我怎样才能在php中运行imagemagick命令?

tis*_*mon 4 php imagemagick

我需要弯曲文本并将其放在另一个图像上.我从他们的网站上得到了下面提到的代码,但它没有工作; 有人请告诉我如何在PHP中执行此操作.我的系统将支持imagemagick及其启用..

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

请帮我

感谢致敬

tismon

Liz*_*ard 7

使用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');
Run Code Online (Sandbox Code Playgroud)