nzakas / cssembed

A tool for embedding data URIs in CSS files.
http://www.nczonline.net/
389 stars 30 forks source link

Add SVG conversion #42

Open dmitryshimkin opened 11 years ago

nzakas commented 11 years ago

Thanks for the submission, can you explain a little bit about what you implemented and why?

dmitryshimkin commented 11 years ago

Currently cssembed does't convert svg background images to data:uri. In order to reduce http requests it would be great to convert them too. So I've added mime-type "image/svg+xml" for *.svg files.

fduch commented 11 years ago

Hello, @nzakas!

The svg conversion is important for retina displays support. Look at this comparison for example: checkbox_svg_test

It would be great if we have this feature in master branch)