A lot of time, we require overlaying information text on a picture. In this post, we will introduce a wonderful tool called ImageMagick. To install it, it’s pretty straightforward on pcDuino:
$sudo apt-get update (update package list) $sudo apt-get install imagemagick (install program)
To use the tool, we
$ubuntu@ubuntu:~$ convert IMG_0141.JPG -pointsize 100 -fill white -annotate +40+728 'your overlay text' test.jpg
It takes the picute IMG_0141.JPG and overlays the text your overlay text 40 pixels in from the left-hand edge and 728 pixels from the top edge. The text will be 100 points high and white. The resulting file is saved as test.jpg, but you can use the same filename and path as the input file to overwrite the original.
The output image is shown below:
Leave a Reply
You must be logged in to post a comment.