我想使用ImageMagick创建一个带有透明背景的文本图像。
到目前为止,我使用了以下代码,但是它给我创建了一个黑色背景:
convert -debug annotate -size 720x480 -background none xc:black -fill white -stroke white -font Arial -pointsize 16 90x25 -draw "text 120,370 'move'"-font Arial -pointsize 16 50x25 -draw "text 250,370 'text'"-font Arial -pointsize 16 105x25 -draw "text 360,370 'images'"-font Arial -pointsize 16 115x25 -draw "text 500,370 'another text'" TextTransp.png
这个文件应该是一个.png格式的。基本上,它应该是一个白色文字和透明背景的图像。