Page 1 of 1
best way to assemble this information box
Posted: 2010-12-30T02:02:35-07:00
by myspacee
hello to all,
I need to create some advice box in an www site.
Resorces are not mine, so www admin give me some limit. i can update only images on site.
Try to create (and update) some information box where i can write some info for site users, eg:
I can valorize text variables, so which is the simplest way to 'build' image above?
thank you for any hints,
m.
Re: best way to assemble this information box
Posted: 2010-12-30T09:15:34-07:00
by myspacee
hello,
try to start from 'blank' sample :
and run these :
Code: Select all
convert blank.png -font Arial -pointsize 14 -draw "gravity south fill black text 0,8 '30' " final.png
convert final.png -font Arial -pointsize 10 -draw "gravity south fill black text 0,30 'DEC' fill white text 0,29 'DEC' " final.png
first insert day, other insert month :
how 'add bold' in this example (for day string) ?
Thank you,
m.
Re: best way to assemble this information box
Posted: 2010-12-30T11:10:24-07:00
by fmw42
either use a bold font or add -stroke black -strokewidth X where X is 1 or 2, etc to make the stroke wider
see
http://www.imagemagick.org/Usage/draw/#stroke
Re: best way to assemble this information box
Posted: 2010-12-30T11:22:40-07:00
by Bonzo
Re: best way to assemble this information box
Posted: 2010-12-30T11:53:25-07:00
by myspacee
thanks both,
but i'm not able to add your hints to my syntax,
can you help me a bit more ?
m.
Re: best way to assemble this information box
Posted: 2010-12-30T17:35:03-07:00
by fmw42
try
convert blank.png -font Arial -pointsize 14 -fill black -stroke black -strokewidth 1 -gravity south -draw "text 0,8 '30' " final.png
Re: best way to assemble this information box
Posted: 2010-12-31T03:17:36-07:00
by myspacee
thank you, works perfectly.