Spritificator is a project mainly written in ..., it's free.
pure-JS sprite generation tool
this is the spritificator