ImageMagick - Add text in the middle of a picture

By xngo on June 5, 2019

magick convert INPUT.jpg \
                \( -background none -fill red -font 'Liberation-Mono' \
                    -pointsize 50 label:"This is multiple\nlines text." \
                    -bordercolor Gold -border 5 \) \
                -gravity center -compose over -composite OUTPUT.jpg
 
# Note: To get a list of available fonts, run 
#   magick convert -list font

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.