Page 2 of 2

Re: Center a text problem

Posted: 2017-10-19T10:23:07-07:00
by fmw42
If you have upgraded imagemagick and it does not work, then try upgrading freetype delegate as well. I am currently using freetype @2.8_0.

Re: Center a text problem

Posted: 2017-10-19T10:38:25-07:00
by fmw42
Another way, similar to what GeeMack suggested is to create a much larger background image than you need, then specify the pint-size and use -annotate to draw the text. Then trim and extend to the size you want.

Code: Select all

convert -size 2000x2000 xc:red -fill white -font OpenSans -gravity center -pointsize 328 -annotate +0+0 "MR" -trim +repage -background red -extent 480x480 -density 144 MR2.png
Image