Skip to content

Instantly share code, notes, and snippets.

@thefotios
Created July 21, 2015 20:30
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefotios/0159bdadfce79338fef8 to your computer and use it in GitHub Desktop.
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)
#!/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