Add favicons and instrumentation.

This commit is contained in:
2019-03-27 16:15:58 +01:00
parent 650b7ee48c
commit f3be33174d
9 changed files with 164 additions and 0 deletions

17
scripts/generate-favicons.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
if [[ $# -lt 2 ]]; then
echo "Usage: $0 SOURCE PREFIX" >&2
exit 1
fi
SOURCE=$1
PREFIX=$2
SUFFIX=.png
SIZES=(16x16 32x32 96x96)
for size in "${SIZES[@]}"; do
target="${PREFIX}${size}${SUFFIX}"
convert -background none "$SOURCE" -resize "$size" "$target"
optipng "$target"
done