aslansky / css-sprite

css sprite generator
MIT License
733 stars 55 forks source link

[feature] Optional width/height? #15

Closed dariuszp closed 10 years ago

dariuszp commented 10 years ago

Hi, it would be very useful to have optional width/height for sprites on top of position. Most of the time I really don't need it but often when I work with icons and stuff like that I always need to add size of the icon. And I have at least 3 different sizes.

So it would be nice if css-sprite could add that on demand.

aslansky commented 10 years ago

Hi, what do you mean by that? Could you please provide an example?

aslansky commented 10 years ago

The simplest solution would be to name the tiles differently like tile-10x10.png, tile-20x20 and so on. If css-sprite would do that for you, it would have to resize your images automatically, which would result in lower quality images. That should be done in a graphics program.