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.
Advertisement
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 -fonthelvetica -fillblue -pointsize36 -draw "text15,50 '$TEXT '" image1.jpg image2.jpg
Eg 2: Writing Current Date/Time
# TEXT=`date ` # convert -fonthelvetica -fillblue -pointsize36 -draw "text15,50 '$TEXT '" image1.jpg image3.jpg