Skip to content

Instantly share code, notes, and snippets.

@keot
keot / mkfavicon.sh
Last active December 17, 2015 03:09 — forked from pfig/mkfavicon.sh
Now cleans itself up after conversion.
#!/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