So I have started by making sure a character is central in a image by doing the following (create image, enter text, crop to character, extend canvas) :
Code: Select all
convert -size 200x200 xc:none -fill blue -font Courier-bold -pointsize 100 -gravity center -background none -annotate +0+0 b -trim -gravity center -extent 400x400 +repage b.png
Code: Select all
convert background.png b.png -geometry +200+400 -composite a_o.png
However I would like to do this without creating a temporary file for the character so doing it all in one command so I am trying to use paranthesis.
Code: Select all
convert background.png \( -size 200x200 xc:none -fill blue -font Courier-bold -pointsize 100 -gravity center -background none -annotate +0+0 b -trim -gravity center -extent 400x400 +repage \) -geometry +200+400 -composite out.png