James A. Rosen
James A. Rosen

Reputation: 65291

Is there a library to do CSS spriting automatically?

CSS Spriting can really help performance, but it's not the easiest thing to read and maintain. Are there any tools that would let me code the images individually but aggregate them up and replace the HTML with the correct subset of the montage?

I'm specifically thinking a Ruby on Rails plugin, but if there's a package for another language, I'd be happy to port it.

Upvotes: 5

Views: 350

Answers (3)

Nextpulse
Nextpulse

Reputation:

image_bundle is only for RMagick. I am trying to port it over to imagescience.

Upvotes: 0

kingryan
kingryan

Reputation: 26

I haven't tried it, but image_bundle appears to be what you want:

http://github.com/bartt/image_bundle/tree/master

Upvotes: 1

Warrior
Warrior

Reputation: 39404

SmartSprites

Try it.

Upvotes: 5

Related Questions