Skip to content

Instantly share code, notes, and snippets.

@AMeijerNL
Created June 12, 2013 07:59
Show Gist options
  • Save AMeijerNL/5763546 to your computer and use it in GitHub Desktop.
Save AMeijerNL/5763546 to your computer and use it in GitHub Desktop.
No installs required, just change the filename and you're all set! Even better: First compress / minify your images (using a tool like ImageOptim). Uncompressed .png file (200x70 pixels) outputs as 4764 characters The same file, compressed: outputs as 1749 characters! Which is only 36% of the original size!
$ openssl enc -base64 -in YOUR_FILE.png | tr -d '\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment