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

Unable to find out image boundaries. #55

Closed rudbaby closed 10 years ago

rudbaby commented 10 years ago

I have tried spritecow on this image. some reason its not able to find the image boundaries with in the sprite.

http://q.ebaystatic.com/aw/mobile/mobileWeb/popular_categories/spr/us-q25-v1.jpg

Is it the problem with image creation ? i have created this sprite image with image magic from multiple images using following command.

montage -tile 1 -geometry +1+0 -gravity Center -extent 280x212 1.png 2.png x.png

jakearchibald commented 10 years ago

You need to set the background to white (using "Pick Background"), then it works for a lot of the image. Unfortunately, the heavy jpeg compressions blurs the boundaries from one part to another for the top few sprites

rudbaby commented 10 years ago

Setting background worked. Thanks @jakearchibald