Last active
December 13, 2015 18:38
-
-
Save frangio/4957031 to your computer and use it in GitHub Desktop.
Converts file passed as argument to Data URI representation.
This file contains hidden or 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
#!/usr/bin/env sh | |
echo "data:$(file -b --mime-type "$1");base64,$(base64 "$1")" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment