Text fill not working

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
kevinleesmith
Posts: 20
Joined: 2014-10-17T03:12:47-07:00
Authentication code: 6789

Text fill not working

Post by kevinleesmith » 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?

kevinleesmith
Posts: 20
Joined: 2014-10-17T03:12:47-07:00
Authentication code: 6789

Re: Text fill not working

Post by kevinleesmith » 2018-12-14T10:38:48-07:00

In fact - a simpler example is this one

http://www.pragmaticea.com/PF2/componen ... 000483.png

produced by
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>

Post Reply