Last active
August 29, 2015 14:15
-
-
Save takahashiyuya/5dae1e1b90eea3f9346a to your computer and use it in GitHub Desktop.
Data URI scheme をシェルで生成する。そんで関数にしてコマンドを追加する
This file contains 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
・シェル | |
echo "data:image/png;base64,"$(base64 ファイル名) | |
・コマンドにする | |
echo 'function datauri() { echo "data:image/png;base64,"$(base64 $1); }' >> .bash_profile | |
source .bash_profile | |
datauri ファイル名 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment