Optimize your website using CSS Sprites! Generate CSS Sprites to speed up your website by reducing HTTP requests.
A CSS sprite is a single image file that contains multiple individual images. You can use sprites to make your websites load faster, by decreasing the number of HTTP requests your users have to make. Each request will contain the overhead of HTTP headers (including cookies) and the connection's latency. By using a single image file instead of many, you can dramatically decrease the time it take your pages to load.
There are a few definitions, but in this case we mean that the image is able to be resized to fit the screen, for example using
Normally this doesn't work with CSS sprites, but the technique on this page allows it.
This tool generates:
First upload the image file and add the CSS to your stylesheet.
Then replace your images with <img> tag to load the sprite.
CSS classes are generated from the image filenames you upload, so for example:
<img class="icon" alt="" src="data:...">
Greg, AKA RoBorg did - I'm a professional PHP programmer for Just Say Please.
You can follow me on Twitter
At the moment just via Twitter.
They're not stored on the server.
Not at the moment. Tweet me if you're interested.
Not at the moment, but if I receive enough interest I might clean up the code and release it.
The sprite generator is written in PHP, using the GD image functions. The transparent PNGs are manually generated.
That's a base-64 encoded transparent PNG file, the size of the orignal image. This is used to get the aspect ratio right.