Created
July 21, 2015 20:30
-
-
Save thefotios/0159bdadfce79338fef8 to your computer and use it in GitHub Desktop.
Makes properly sized emoji for slack. Just point this at any URL. You'll need to have `convert` (part of ImageMagick)
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
#!/usr/bin/env bash | |
url=$1; | |
output=${2-output.png}; | |
size=${3-128}; | |
curl --silent -kL $url | convert - -resize ${size}x${size} $output; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment