[magick-users] Centralising font in captions
damien dunlop
djd at cmad.com.au
Sat Jul 19 08:18:37 PDT 2008
Possibly the most common requirement of a caption
is to place it beneath the image. But this does not
appear to be easy. The following lines appraoch
a solution but are not sufficient.
convert A.gif \
-gravity South\
-background White -splice 0x30 \
-pointsize 20 -annotate 0 \
'Fig 33.' \
B.gif
The problem with the above is that it does not automatically
centre the text vertically on the added splice, it places
the baseline on or a little above the bottom of the splice,
which may be nowhere near the centre. I have considered
labels, captions, enclosing options in \(...\) but have not
found a simple solution.
More information about the Magick-users
mailing list