blob: 34e3921e82634dd8ea6b78fed810c4ff50dde494 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
set -e
#reads through tol.json, gets names, and generates image for each name
cat tol.json | \
gawk 'match ($0, /"name"\s*:\s*"(.*)"/, arr) {print arr[1]}' | \
while read; do
convert -size 400x400 xc:khaki +repage \
-size 300x300 -fill black -background None \
-font Ubuntu-Mono -gravity center caption:"$REPLY" +repage \
-gravity Center -composite -strip assets/"$REPLY".jpg
done
|