TextMate drag command for Base64 encoding images

Just a quick hit on this one… when hacking away at the styles of things one probably shouldn’t be hacking away at, embedding images right in the CSS is a handy trick. It’s done by Base64 encoding the image, removing line breaks from the resulting string, and using it to set the background property for the CSS rule.


This is a companion discussion topic for the original entry at https://brettterpstra.com/2010/06/19/textmate-drag-command-for-base64-encoding-images