Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any good alternatives to the Compass sprite generator? (Rails sprite generators)

I was wondering if there are any libraries out there that do what the Compass sprite generator does? I absolutely love that feature of Compass, but I don't want the rest of the framework. I just want something that creates a sprite with a folder full of PNGs and maybe creates some CSS classes I can use to display the graphics in the sprite. I've done a little poking around, and I see a lot of sprite generators as web apps. Do people use these for high-traffic sites? Or do people generally maintain their own sprites using Photoshop or some better tool? Any info is most appreciated!

like image 496
Ringo Avatar asked Apr 15 '15 18:04

Ringo


People also ask

Which of the following is a benefit of using image sprites?

The main advantage of using image sprite is to reduce the number of http requests that makes our site's load time faster. The images also load faster making switching from one image to another on some event much smoother.

What are CSS image scripts?

CSS Sprites are a collection of images that are combined into a single file that an HTML document can access. These images are then called into use within the HTML code to be displayed on the website.


1 Answers

To answer myself, yes, there are a few options:

https://github.com/jakesgordon/sprite-factory

https://github.com/aslansky/css-sprite

https://github.com/wellington/wellington

like image 61
Ringo Avatar answered Sep 20 '22 16:09

Ringo