twolfson / spritesmith

Utility that takes sprites and converts them into a stylesheet and its coordinates
MIT License
916 stars 56 forks source link

Is it possible to support WebP? The sprite we built is 166KB which is huge. #75

Closed tom10271 closed 6 years ago

tom10271 commented 6 years ago

WebP should save us ~50% of space. In slow speed mobile network it can save ~2 seconds of loading time.

Thanks

twolfson commented 6 years ago

Yes, it's possible to output a WebP image. It mostly depends on the engine. I'm unsure if any of our current engines would support WebP but spritesmith is flexible enough to support additional engines

Additionally, any output lossless image (e.g. PNG) should be able to be converted to WebP after it's generated