command-snippets/add-text-caption-to-image-with-imagemagick.md

420 B

convert input.jpg -font Liberation-Sans -fill white -undercolor '#00000080' -pointsize 14 -gravity NorthEast -annotate +5+5 "blablabla" output.jpg

for my cangrow project

convert cangrow.jpg -font Liberation-Sans -fill white -undercolor '#00000080' -pointsize 14 -gravity NorthEast -annotate +5+5 "$(curl -s http://192.168.30.42/api/debug | jq -r '.grow[].GrowName') - $(date '+ %d.%m.%Y %T')" out.jpg