>Hi  again,
>
>when trying to label the images I got via -composite,
>I ran into problems, because both '-gravity' and '-pointsize'
>are basically ignored.
>
>The commands:
>
>convert -background white -fill black -size 200x200 -font Verdana-Regular \
>  -pointsize 12 label:Src -gravity South src.png
>


nominally put -gravity before label:

convert -background white -fill black -size 200x200 -font 
Verdana-Regular -pointsize 12 -gravity South label:Src src.png


But pointsize is ignored if you specify a size. See


http://www.imagemagick.org/Usage/text/#size

If the "-size" setting has been specified with both a width and a 
height (but not a "-pointsize", the label will be created at that 
size. Also the size of the draw text will be adjusted to best fit the 
final given label size!

Both label: and caption: will scale the text to fill the size if 
specified. If -size is not specified, then it will use the pointsize 
specified.

So use either of the following:

1) To have the font size adjusted to fill the -size

convert -background white -fill black -size 200x200 -font 
Verdana-Regular -gravity South label:Src src.png




or

2) To have the size specified and use the pointsize, but not 
necessarily fill the space allocated

convert -background white -fill black -font Verdana-Regular 
-pointsize 12 -gravity South label:Src src.png


Fred
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to