Last Updated: February 25, 2016
·
484
· benjamincharity

Base64 encode an image directly into your clipboard.

Run this from the command line or, as I do, from directly in vim.

Note: Change the image reference as needed (myImage.png)

echo -n `cat myImage.png` | base64 | pbcopy