Hacker News new | ask | show | jobs
by riso 6187 days ago
What would be nice is a script that extracts the image urls from the stylesheet(s), creates the sprite image for the used images, then creates another css file with the required offsets for the classes.

I have been putting off spending some time creating a script like this, mostly because I am pretty sure there is already one out there that does it.

1 comments

Google Web Toolkit does this; I'm sure other web development frameworks do as well. A quick search for a standalone utility revealed: http://spritegen.website-performance.org/ .