clarkk
clarkk

Reputation: 1

imagemagick: append a label under image with font size

How to append a label under an image with a font size?

convert image.png -label "Test label" -pointsize 100 -gravity center -append image.png

Upvotes: 3

Views: 1964

Answers (1)

Mark Setchell
Mark Setchell

Reputation: 208013

Like this:

convert image.png -pointsize 36 label:"Test label" -gravity center -append result.png

enter image description here

When you use xc:, label:, pattern: and gradient: (i.e. all the ones with no dash at the start and a colon at the end), ImageMagick creates a canvas for you to put the data on.

Upvotes: 4

Related Questions