Last Updated: February 25, 2016
·
1.135K
· rhowardiv

Bash: Make a data URI for any image file

export F="/my/awesome/file" && echo "data:$(file -bi "$F");base64,$(base64 "$F")"