This command displays a message centered inside a black rectangle.
Code: Select all
convert -size 30x30 -background '#00000080' -fill white -gravity center label:ABC test1.png
However, if I tell it to write a single character, the alignment is off:
Code: Select all
convert -size 30x30 -background '#00000080' -fill white -gravity center label:A test2.png
In this case, the letter "A" touches the top of the box. How can I fix this?