Easy CSS sprite generation.

Fri, Apr 29, 2011

I have finally joined the open source community by publishing my first ruby gem!

The sprite factory is a ruby library that can be used to generate CSS sprites. It combines individual image files from a directory into a single unified sprite image and creates an appropriate CSS stylesheet for use in your web application.

The library provides:

  • both a ruby API and a command line script
  • many customizable options
  • support for any stylesheet syntax, including CSS and Sass.
  • support for any image library, including RMagick and ChunkyPNG.

You can find install and usage instructions on github.