#!/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 " 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