Skip to content

Instantly share code, notes, and snippets.

@johnjullies
Forked from jamesflorentino/convert.sh
Created September 20, 2016 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnjullies/c4f16aeebe1983e4170125dfde896f97 to your computer and use it in GitHub Desktop.
Save johnjullies/c4f16aeebe1983e4170125dfde896f97 to your computer and use it in GitHub Desktop.
Makefile for creating favicons from 16x16 up to 128x128.
convert favicon.png -resize 16x16 favicon.ico;
convert favicon.png -resize 16x16 favicon_16x16.png;
convert favicon.png -resize 32x32 favicon_32x32.png;
convert favicon.png -resize 64x64 favicon_64x64.png;
convert favicon.png -resize 128x128 favicon_128x128.png;
echo "conversion complete";
<link rel="icon" href="/favicon_16x16.png" sizes="16x16" type="image/png">
<link rel="icon" href="/favicon_32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="/favicon_64x64.png" sizes="64x64" type="image/png">
<link rel="icon" href="/favicon_128x128.png" sizes="128x128" type="image/png">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment