Created
June 13, 2013 04:39
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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