glow/gallery.sh
2019-11-28 07:11:17 +01:00

8 lines
248 B
Bash
Executable file

#!/bin/bash
for style in ./styles/*.json; do
echo "Generating screenshot for ${style}"
filename="gold_`basename -s .json ${style}`.png"
termshot -o ./styles/ -f "$filename" ./gold -s ${style}
pngcrush -ow "./styles/$filename"
done