Tool für Data URIs

cssembed ist ein Tool zum Encoden von Bildern als Data URIs in CSS.

Nicholas Zakas has created the outstanding tool CSSEmbed, which takes a CSS file as input, goes through it and encodes all image references to base64. This means that the action of changing all your image references in your CSS file to base64-encoded is a matter of seconds!

Just download the cssembed JAR file, put it wherever you like (placed in the same directory as the CSS file below for simplicity) and then call it like this:

java -jar cssembed-0.3.2.jar styles.css > styles-base64.css

Hm, das werde ich mal testen.

via Robert’s Talk

Possibly related posts (automatically generated)