Created
November 30, 2019 06:59
-
-
Save e0da/f1ddc69f63f95deeb3c0f0d2cf44b202 to your computer and use it in GitHub Desktop.
favify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
# https://gist.github.com/justinforce/f1ddc69f63f95deeb3c0f0d2cf44b202 | |
input=${1:-favicon.svg} | |
output=${2:-favicon.ico} | |
# https://gist.github.com/azam/3b6995a29b9f079282f3#gistcomment-2958717 | |
convert \ | |
-density 256x256 \ | |
-background transparent \ | |
-define icon:auto-resize \ | |
-colors 256 \ | |
$input \ | |
$output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment