GraphicsMagick text issues

I'm trying to either add text to an existing image using GM, or as a last resort, create a new image with text, which I can then combine with the original image. For some reason I can’t work normally ...

I am using GM 1.3.21 Q8 on Windows.

I found that this creates a white image with black text, but neither gravity nor punctuality matter.

gm convert -background white -size 1480x50 -fill black -font Arial -pointsize 8 -gravity Center label:"Center this text" label.jpg

I can’t do anything ever with a team -draw text. The sample in GM help doesn't actually do anything.

At this moment, I lost a little and can not find an online resource that helps me. There is a great page for IM ( http://www.imagemagick.org/Usage/text/ ), is there a similar one for GM? Or am I trying all this wrong?

+4
source share
1 answer

In these lines:

gm convert -size 400x100 xc:yellow -fill black -pointsize 72 -gravity Center -draw 'text 0,0 "some text"' image.png

enter image description here

+5
source

All Articles