Skip to content

Instantly share code, notes, and snippets.

@phx
Created June 13, 2013 04:39
Show Gist options
  • Save phx/5771275 to your computer and use it in GitHub Desktop.
Save phx/5771275 to your computer and use it in GitHub Desktop.
encode image to base64 text string using native openssl package in osx. encoding with this method is more widely-available than the regular base64 package, because it doesn't first require installing xcode or building gnu coreutils from source.
#!/bin/bash
openssl base64 -in pudding.png > pudding.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment