Search code examples
imagemagickimagemagick-convert

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

Solution

  • 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.