4

does anyone know if there exists any offline software or plugin(dreamweaver, etc) to generate a css sprite. That is: merging images and generating the css rules.

I know there is a post here: Tools to make CSS sprites?

but all of those are online generation tools.

Community
  • 1
  • 1
Shawn Mclean
  • 56,733
  • 95
  • 279
  • 406

2 Answers2

2

There is a pure ruby library to generate css sprites. that means no dependancy on rmagic or other libraries.

http://github.com/aberant/spittle

aberant
  • 41
  • 2
1

I have created a Ruby library that can generate sprite images and CSS rules, which I have not fully published yet (I'm wanting to Add more features, such as CSS rewriting, so I'm waiting).

Not wanting to spam, add a comment and I'll send you the link.

As for dreamweaver plugins or desktop applications, none I am aware of.

Cullen Walsh
  • 4,318
  • 1
  • 17
  • 12
  • I have no experience of ruby, but could I run it on localhost and get the functionality from it? – Shawn Mclean Oct 15 '09 at 22:13
  • Yes. http://github.com/ckwalsh/RubySprites/ is the package, my email is in the README. You will need ruby ("sudo apt-get install ruby") and the GD or rmagick gems ("sudo apt-get install gem; sudo gem install gd2"). THe script you need is in the examples directory. I haven't cleaned it yet (aka, it's not the most intuitive at the moment, and definitely needs documentation) but my email is in the README, feel free to contact me. – Cullen Walsh Oct 15 '09 at 22:42