I’m not sure if this has been done before, but I thought it would be fun to code a ASP.NET control based on the sc:Image from Sitecore. I wanted to create an inline image (based on the Data URI scheme). This could be useful for improving performance in some cases.
I’m not really certain that it is even a useful control in its current form. But it should be easy enough to convert this control so that it can be used in a dynamic CSS file. If you seriously want to use this, check out this page.
Here’s the code:
And if you want to use it in your page, register the control:
And you’ll be able to use it like any Sitecore image (including the MaxWidth and MaxHeight properties):