Announcing: Spittle - a pure ruby spriting library for PNG images

Hello everyone,

I’d like to introduce you to Spittle. It is a library that makes generating and using png sprites in your web applications simple. You can use it as a standalone gem or install it as a plugin in your Rails app.

If you haven’t heard of css sprites this is a good read: http://www.alistapart.com/articles/sprites/

Spittle will take a set of png images and merge them into one large sprite. Along with this sprite Spittle will also generate a stylesheet you can use to access the images within the sprite. For an example see:

http://github.com/aberant/spittle/tree/master/examples/sprites/

Full documentation & source is available on GitHub:

http://github.com/aberant/spittle

This is an early release and there are a few things to note. Spittle is well tested, but there are likely a few bugs lurking. If you find one let us know and we’ll fix it. Currently we only support a subset of the PNG specification, so spittle will work with most, but not all PNGs.

I hope you find Spittle useful. If you have an idea how we could make Spittle better or if you would like to help please feel free to contact me.

cheers,

-Tyler Jennings