What I'm trying to do is create two layers. (This is a reduced case from what I'm actually doing, I know there's simpler ways to achieve just what's shown here.)
Layer 1 - A white background
Layer 2 - A text box with a bit of space around it and a black line around it.
I want Layer 2 to be positioned centered horizontally, but at a specific y coordinate. I don't care if it flows down from the specified y coordinate or is vertically centered on it - I can handle either of those cases.
This is my most recent try:
Code: Select all
convert \
\( -size 1000x1000 xc:white -write mpr:bg +delete \) \
\( -size 0x0 -background "#68EBFE" -fill black -pointsize 24 label:"This is a label which I want centered" -bordercolor "#68EBFE" -border 10x10 -bordercolor black -border 1x1 -write mpr:textLabel +delete \) \
\( mpr:bg -gravity center -geometry +500+50 mpr:textLabel -composite -write output.jpeg +delete \) \
null: null: