Image by https://unsplash.com/@alexbdnr

Annotate pictures using imagemagick

convert -font font.ttf  template.png -gravity center -background none -size 433x300! caption:mytext -geometry +10+170 -composite generated/mytext.png
#!/bin/sh 
while read line
do
convert -font font.ttf template-new.png -gravity center -background none -size 433x300! caption:$line -geometry +10+170 -composite generated/$line.png
done < birtdays.txt

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aymen Furter

I am a Cloud Solution Architect working for Microsoft. The views expressed on this site are mine alone and do not necessarily reflect the views of my employer.