Add border around termshot screenshots

This commit is contained in:
Christian Muehlhaeuser
2019-12-14 01:14:11 +01:00
parent 1bfbd599d1
commit 10a8b1f3cd
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -8,6 +8,12 @@ for element in ./styles/examples/*.md; do
stylename="${basename}.style"
filename="${basename}.png"
# take screenshot
./termshot -o ./styles/examples/ -f "$filename" ./cmd/gold/gold -s ./styles/examples/${stylename} ${element}
# add border
convert -bordercolor black -border 16x16 "./styles/examples/$filename" "./styles/examples/$filename"
# optimize filesize
pngcrush -ow "./styles/examples/$filename"
done
+6
View File
@@ -9,6 +9,12 @@ for style in ./styles/*.json; do
light="-l"
fi
# take screenshot
./termshot ${light} -o ./styles/gallery/ -f "$filename" ./cmd/gold/gold -s ${style} ./cmd/gold
# add border
convert -bordercolor black -border 16x16 "./styles/gallery/$filename" "./styles/gallery/$filename"
# optimize filesize
pngcrush -ow "./styles/gallery/$filename"
done