Re: Image sprites use cases

On Sep 6, 2009, at 8:28 AM, Boris Zbarsky wrote:

> Brad Kemper wrote:
>> Good. Let's do it then, It would be much more convenient to be able  
>> to store and edit it as a single file, without having to export  
>> each layer individually with a separate file name, and then refer  
>> to a separate file name for each in CSS. That's also part of the  
>> appeal of sprites.
>
> It would also have the drawback of not being backwards-compatible  
> and not degrading particularly gracefully, right?

No more so than any "new" image format, such as gradients (not that  
layered image formats like Photoshop files, TIFF, etc., are  
particularly new). If it used an existing multi-frame (rather than  
multi-layer) format, such as animated GIF, then it could be set to  
repeat zero times and only show the first frame.

If it was something newer, like animated PNG, or multi-layer PNG, then  
it might be even better, showing up as the first layer/frame in UAs  
that didn't support it, and editable via some sort of plug-in for  
PhotoShop.

Received on Sunday, 6 September 2009 15:54:21 UTC