Add favicons and instrumentation.
This commit is contained in:
17
scripts/generate-favicons.sh
Executable file
17
scripts/generate-favicons.sh
Executable 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
|
||||
Reference in New Issue
Block a user