Text fill not working
Posted: 2018-12-14T10:18:20-07:00
Please see
This command
magick <INFILE> -size 701x%[fx:h] -background None -fill #FFFFFF -gravity center caption:"Pragmatic EA is a non-profit research company. Pragmatic EC is a consulting company." ( +clone -sparse-color bilinear "0,0,#285EA6,%[fx:w-1],%[fx:h-1],#5E28A6" ) ( -clone 1,2 -compose DstOver -composite ) -delete 1,2 +append <OUTFILE>
produces this file http://peaf.com/pf2/components/images/z000686.png
But this command (which is the same but appends another image to the top)
magick <INFILE> -size 1131x%[fx:h] -background None -fill #FFFFFF -gravity center caption:"Pragmatic EA is a non-profit research company. Pragmatic EC is a consulting company." ( +clone -sparse-color bilinear "0,0,#285EA6,%[fx:w-1],%[fx:h-1],#5E28A6" ) ( -clone 1,2 -compose DstOver -composite ) -delete 1,2 +append -size %[fx:w]x225 -background None -fill #000000 -gravity center caption:"What do Pragmatic EA Ltd and Pragmatic EC Ltd Do?" ( +clone -sparse-color bilinear "0,0,#FF9900,%[fx:h-1],%[fx:w-1],#00FF00" ) ( -clone 1,2 -compose DstOver -composite ) -delete 1,2 +swap -append <OUTFILE>
produces this file - makes the text in the blue box smaller than it should be!
http://peaf.com/pf2/components/images/o000686.png
Any help to make the text in both boxes fill their respective boxes?
This command
magick <INFILE> -size 701x%[fx:h] -background None -fill #FFFFFF -gravity center caption:"Pragmatic EA is a non-profit research company. Pragmatic EC is a consulting company." ( +clone -sparse-color bilinear "0,0,#285EA6,%[fx:w-1],%[fx:h-1],#5E28A6" ) ( -clone 1,2 -compose DstOver -composite ) -delete 1,2 +append <OUTFILE>
produces this file http://peaf.com/pf2/components/images/z000686.png
But this command (which is the same but appends another image to the top)
magick <INFILE> -size 1131x%[fx:h] -background None -fill #FFFFFF -gravity center caption:"Pragmatic EA is a non-profit research company. Pragmatic EC is a consulting company." ( +clone -sparse-color bilinear "0,0,#285EA6,%[fx:w-1],%[fx:h-1],#5E28A6" ) ( -clone 1,2 -compose DstOver -composite ) -delete 1,2 +append -size %[fx:w]x225 -background None -fill #000000 -gravity center caption:"What do Pragmatic EA Ltd and Pragmatic EC Ltd Do?" ( +clone -sparse-color bilinear "0,0,#FF9900,%[fx:h-1],%[fx:w-1],#00FF00" ) ( -clone 1,2 -compose DstOver -composite ) -delete 1,2 +swap -append <OUTFILE>
produces this file - makes the text in the blue box smaller than it should be!
http://peaf.com/pf2/components/images/o000686.png
Any help to make the text in both boxes fill their respective boxes?