I’m having trouble getting the image width and height when generating a sprite from compass. I’m using Scout for my live watch and already configured my images folder. I have my images that I want to sprite in a folder called common.
Here’s my code
@import "common/*.png";
.facebook { @include common-sprite(facebook); }
This works and generates the background position, but I want to get the width and height.
Any would be awesome!
I found the solution. Adding
$common-sprite-dimensions: true;(link to compass sprite options docs) will put the width and height into the output.