Created
October 4, 2018 20:07
-
-
Save lrewega/ae4e48cc0d321dea020c6590f387c276 to your computer and use it in GitHub Desktop.
image to trimmed transparent png and favicon
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
curl https://upload.wikimedia.org/wikipedia/commons/3/3f/HST-SM4.jpeg | | |
convert - -alpha set -bordercolor black -border 1 -fill none -fuzz 8% -draw "color 0,0 floodfill" -shave 1x1 -trim -write hst.png \ | |
-background none -gravity center -resize 64x64 -extent 64x64 -define icon:auto-resize=64,48,32,16 favicon.ico |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment