jakearchibald / sprite-cow

Sprite Cow helps you get the background-position, width and height of sprites within a spritesheet as a nice bit of copyable css.
http://www.spritecow.com
Other
1.3k stars 129 forks source link

Allow a user to specify width/height #22

Open gilmoreorless opened 13 years ago

gilmoreorless commented 13 years ago

A big use case for sprite sheets is for icon sets, with each icon often fitting within a standardised space (eg. 16x16 pixels). However, some of the icon images don't always match those dimensions - they might be 16x13, for example, which is what Sprite Cow picks up.

I'd love to be able to specify width/height and have Sprite Cow auto-centre the detected icon within that space.

Cheers,

Gil

jakearchibald commented 13 years ago

Good suggestion, in fact it's one that the SpriteCow site would benefit from, I encountered a similar issue when measuring the positions of the icons on the toolbar buttons.

err0 commented 12 years ago

Or, "lock height" / "lock width" buttons. Then you could select a set of sprites for an animation, get the max height and lock it for the set. You would need some kind of "from top/from bottom" and "from left/from right" toggle as well.

Fardinak commented 11 years ago

:+1: That would be a great feature.