Skip to content

Instantly share code, notes, and snippets.

@zhanglianxin
Last active August 28, 2020 06:23
Show Gist options
  • Save zhanglianxin/aedb4d456615f6af7f85b8ce607c9fc1 to your computer and use it in GitHub Desktop.
Save zhanglianxin/aedb4d456615f6af7f85b8ce607c9fc1 to your computer and use it in GitHub Desktop.
Generate favicon.ico by self.
#!/usr/bin/bash
# https://unix.stackexchange.com/questions/89275/how-to-create-ico-file-with-more-than-one-image
# https://superuser.com/questions/491180/how-do-i-embed-multiple-sizes-in-an-ico-file
convert -background transparent xxx.png -define icon:auto-resize=48,96,144,192 favicon.ico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment