Last active
April 29, 2021 23:53
-
-
Save benwaffle/d9361669b21af8aa4b7af1c2692f598d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BG=(lightblue palegreen rosybrown1) | |
FG=(blue sienna purple) | |
i=0 | |
jq -r '. | map(.text) | .[]' ./*.json | while read -r str; do | |
echo $i | |
convert -size 1280x720 -background "${BG[((i % ${#BG[@]}))]}" -fill "${FG[((i % ${#FG[@]}))]}" -gravity Center -pointsize 52 "caption:$str" "$i.png" | |
((++i)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment