diff options
Diffstat (limited to 'src/genTestImgs.sh')
| -rwxr-xr-x | src/genTestImgs.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/genTestImgs.sh b/src/genTestImgs.sh index 34e3921..12dd114 100755 --- a/src/genTestImgs.sh +++ b/src/genTestImgs.sh @@ -3,10 +3,10 @@ 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]}' | \ + 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 \ + convert -size 200x200 xc:khaki +repage \ + -size 150x150 -fill black -background None \ -font Ubuntu-Mono -gravity center caption:"$REPLY" +repage \ -gravity Center -composite -strip assets/"$REPLY".jpg done |
