Created
May 3, 2013 17:17
-
-
Save willread/5511519 to your computer and use it in GitHub Desktop.
Replace references to filename.png in a CSS file with an embedded, base64 encoded copy of the file.
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
sed -i -e "s|filename.png|data:image/png;base64,$(openssl base64 -in filename.png | tr -d '\n')|g" filename.css |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment