开发者

php,unix command ,imagick help me

开发者 https://www.devze.com 2022-12-30 18:40 出处:网络
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

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

精彩评论

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