Files
mowesta/web-angular/generate_favicon.sh
T
handte 3368232d81
LocationBasedServices/mowesta/master There was a failure building this commit
Initial project stub.
2019-09-19 21:59:39 +02:00

21 lines
451 B
Bash

#!/bin/bash
# Bash script to generate the angular favicons from a base image
# using the convert program that is part of imagemagick.
#
# Author: Marcus Handte
if [ -z "$1" ]
then
echo "Usage: generate_favicon.sh <icon.png>"
exit 1
fi
convert $1 -define icon:auto-resize=64,48,32,16 src/favicon.ico
for res in 16 32 57 60 72 76 96 114 120 144 152 180 192
do
convert $1 -resize ${res}x${res} src/assets/icons/favicon-${res}x${res}.png
done