This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# originally from | |
# http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html | |
input=$1 | |
working=`mktemp -d -t mkfavicon-XXXX` | |
convert $1 -resize 256x256 -filter Gaussian -transparent white ${working}/favicon-256.png | |
convert ${working}/favicon-256.png -filter Gaussian -resize 16x16 ${working}/favicon-16.png |