blob: 900e2223197a78dc0bc9e4d2ea9e53b658944a47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
FONT="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf"
if [ $# -gt 2 ]; then
convert -font $FONT -size 1440x1080 xc:black \
-fill white -gravity center -pointsize 60 -draw "text 0,0 '${1}'" \
-fill white -gravity center -pointsize 40 -draw "text 0,60 '${2}'" \
-append ${3}.png
else
convert -font $FONT -size 1440x1080 xc:black \
-fill white -gravity center -pointsize 60 -draw "text 0,0 '${1}'" \
-append ${2}.png
fi
|