Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Text on Image

To add some text to an image we use the annotate command, here also introducing gravity to place the text at the top, choosing 30pt font size and white text (default is black text):

$ display sample.jpg

$ convert sample.jpg -gravity North -pointsize 30 -fill white \
                     -annotate +0+100 'Visiting Singapore' output.jpg

$ display output.jpg

Figure 36.6: Adding text to an image.
Image im_marina_bay Image im_marina_bay_add_text

Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.