multiline text with different font sizes

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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: multiline text with different font sizes

Post by Bonzo »

You can rotate with annotate : http://www.imagemagick.org/script/comma ... p#annotate you can also use -gravity with annotate.

I would guess you want something like:

Code: Select all

convert -font Helvetica-Bold -pointsize 24 -fill red -gravity center -annotate 40x40+0+0 'Big text' -pointsize 18 -gravity center -annotate 40x40-20+0 'medium text' -pointsize 12 -gravity center -annotate 40x40+20+0 'small text' bg.gif out.gif
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: multiline text with different font sizes

Post by fmw42 »

Just a point of convention. The convert syntax usually has the input image right after "convert" and not at the end of the command line.

convert input ...options... output
Post Reply