Copy the Base64 code for an image from the command line.
# change the image reference as needed (logo.svg) echo -n `cat logo.svg` | base64 | pbcopy