Bash: Make a data URI for any image file
export F="/my/awesome/file" && echo "data:$(file -bi "$F");base64,$(base64 "$F")"
Written by Richard Howard
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Cli
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#