Skip to content

Instantly share code, notes, and snippets.

@pfig
Created February 12, 2012 12:01
Show Gist options
  • Select an option

  • Save pfig/1808188 to your computer and use it in GitHub Desktop.

Select an option

Save pfig/1808188 to your computer and use it in GitHub Desktop.

Revisions

  1. Pedro Figueiredo created this gist Feb 12, 2012.
    11 changes: 11 additions & 0 deletions mkfavicon.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/bin/bash

    # from
    # http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html

    convert source-WxW.png -resize 256x256 -transparent white favicon-256.png
    convert favicon-256.png -resize 16x16 favicon-16.png
    convert favicon-256.png -resize 32x32 favicon-32.png
    convert favicon-256.png -resize 64x64 favicon-64.png
    convert favicon-256.png -resize 128x128 favicon-128.png
    convert favicon-16.png favicon-32.png favicon-64.png favicon-128.png favicon-256.png -colors 256 favicon.ico