Jeff Bridgforth :: Webcraftsman

Crafting Web sites since 1999

I am a Web designer passionate about creating elegant, inspiring, and usable Web experiences that connect with an audience and fulfull business objectives.

High 5 : Sprite Cow

November 14, 2011

One of my favorite new tools is Sprite Cow. Sprite Cow helps you get the height, width, and back­ground posi­tion of dif­fer­ent sprite images within a larger sprite sheet. It is really easy to use and works much like a lot other graphic kinds of tools (i.e., Photoshop).

You just open your image in Sprite Cow, use the mar­quee tool to select your sprite, and Sprite Cow gen­er­ates the CSS you need for height, width, and back­ground position.

I had used sim­ple sprites in the past, but was chal­lenged by a col­league to make sprite sheets to cover the major­ity of back­ground images for a site to improve per­for­mance. Sprite Cow has made it very easy for me to do this. I just build the sprite sheet as I go and use Sprite Cow to do the hard work. No more man­ual labor in Pho­to­shop to deter­mine these 3 values.

Sprite Cow is a side project from the guys at The Team. They cre­ated it to solve their own prob­lem to cre­ate a quicker and eas­ier process for this tedious, repet­i­tive, and time con­sum­ing process. Then they turned around and shared it with the broader com­mu­nity. High five!

It is always great when you find great tools. And the tim­ing of it coin­cided with my deci­sion and desire to build more com­plex sprites back in June.

Shout out to Chris Coyier for men­tion­ing Sprite Cow on CSS Tricks.

UPDATE: Chris Coyier released a screen­cast today (Novem­ber 16) on Using Sprite Cow. Check it out.

 

Comments are closed.