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

**URL:** <https://discuss.rubyonrails.org/t/announcing-spittle-a-pure-ruby-spriting-library-for-png-images/48066>\
**Category:** rubyonrails-talk\
**Created:** [December 18, 2009, 4:00am UTC](https://discuss.rubyonrails.org/t/announcing-spittle-a-pure-ruby-spriting-library-for-png-images/48066 "2009-12-18T04:00:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler\_Jennings](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@Tyler\_Jennings](https://discuss.rubyonrails.org/u/Tyler_Jennings)\
**Post date:** [December 18, 2009, 4:00am UTC](https://discuss.rubyonrails.org/t/announcing-spittle-a-pure-ruby-spriting-library-for-png-images/48066/1 "2009-12-18T04:00:58Z")

</div>

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/](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/](http://github.com/aberant/spittle/tree/master/examples/sprites/)

Full documentation & source is available on GitHub:

[http://github.com/aberant/spittle](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
