Skip to content

Instantly share code, notes, and snippets.

@nicinabox
Last active October 24, 2019 07:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nicinabox/179f46dfecc99a382b44 to your computer and use it in GitHub Desktop.
Convert favicon.png to an .ico with multiple sizes
convert favicon.png -bordercolor white -border 0 \
\( -clone 0 -resize 16x16 \) \
\( -clone 0 -resize 32x32 \) \
\( -clone 0 -resize 48x48 \) \
\( -clone 0 -resize 64x64 \) \
-delete 0 -alpha off -colors 256 favicon.ico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment