Store images in gists.
gist-img.sh is a tiny shell script that encodes the given image
in base64 and uploads it to gist using
gist(1) commands line utility.
$ brew install https://github.com/chrismytton/gist-img/raw/master/extras/gist-img.rb
To upload an image, run the following:
$ gist-img path/to/image.png https://gist.github.com/95a503ec9047b45fe3e0
If everything worked correctly you'll get back a gist url, if you get a 500 error then the file you're uploading is too big.
To convert this gist url back into an image, just invoke the
command with the gist id (the last bit of the url) that you want to get back.
$ gist-img 99a02182ca4467707b40
- Can only handle files less than ~50k
- Only handles png files
Licensed under the MIT license, see
MIT-LICENSE for details.
Copyright (c) Chris Mytton