Article 52Z42 Imagemagick - Convert: Positioning text

Imagemagick - Convert: Positioning text

by
GPGAgent
from LinuxQuestions.org on (#52Z42)
I'm using convert tp put some text on an image and I have one little niggling problem - I cannot see how to move the text to the center of the label:

Code:charlie@charlie-machine:~/COOKING$ echo $T
--- Omelette ---
charlie@charlie-machine:~/COOKING$ convert IMG_3680.JPG -background Khaki -pointsize 80 -fill red -weight 700 label:"$T" +swap -gravity North -append IMG_3680-out.JPG
charlie@charlie-machine:~/COOKING$And attached are the images before and after adding the text.

I want to move the red text to the centre of the khaki banner
Attached Thumbnailsattachment.php?attachmentid=33152&stc=1& attachment.php?attachmentid=33153&stc=1& latest?d=yIl2AUoC8zA latest?i=HSgeh8R9lLY:HxIuPIkcy_4:F7zBnMy latest?i=HSgeh8R9lLY:HxIuPIkcy_4:V_sGLiP latest?d=qj6IDK7rITs latest?i=HSgeh8R9lLY:HxIuPIkcy_4:gIN9vFwHSgeh8R9lLY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments