开发者

php,unix command ,imagick help me

T开发者_如何转开发his command add the text "flower" to the image:

convert flower.jpg -font courier -fill white -pointsize 20 -annotate +50+50 'Flower' flower_annotate1.jpg

I'm using ImageMagick 2.2.0. I'm running it from PHP using:

system('convert flower.jpg -font courier -fill white -pointsize 20 -annotate +50+50 'Flower' flower_annotate1.jpg');

but I'm not getting the result


Escape the single-quotes in the parameters:

system('convert flower.jpg -font courier -fill white -pointsize 20 -annotate +50+50 \'Flower\' flower_annotate1.jpg');

Or just wrap the thing in double-quotes so you don't have to escape them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜