oldjamey
6/13/2013 - 4:39 AM

encode image to base64 text string using native openssl package in osx. encoding with this method is more widely-available than the regular

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