Skip to content

Instantly share code, notes, and snippets.

@pascaliske
Created September 26, 2019 12:53
Show Gist options
  • Save pascaliske/d1b6629b848baf075ad9b0daf57114f5 to your computer and use it in GitHub Desktop.
Save pascaliske/d1b6629b848baf075ad9b0daf57114f5 to your computer and use it in GitHub Desktop.
Convert image file to base64 string in one line.
$ cat path/to/file.png | openssl base64 | tr -d '\n' | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment