How to Write Text On Image using Linux Command

Channel: Linux
Abstract: 50 '$TEXT'" image1.jpg image3.jpg# convert -font helvetica -fill blue -pointsize 36 -draw "text 15

Linux provides an convert command to add any text on an image. In order to use this command you need to install ImageMagick package on your system.

This tutorial will help you to Write Text On Image with examples. For these examples we are taking below image to write some text.

Eg 1: Writing Some Text
# TEXT="Welcome to TecAdmin.net"
# convert -font helvetica -fill blue -pointsize 36 -draw "text 15,50 '$TEXT'" image1.jpg image2.jpg

Eg 2: Writing Current Date/Time
# TEXT=`date`
# convert -font helvetica -fill blue -pointsize 36 -draw "text 15,50 '$TEXT'" image1.jpg image3.jpg

Thank You! for using this article.

Ref From: tecadmin

Related articles