Reduce sprite size by packing images

Bug #362527 reported by Jeroen8
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CSS Sprite Generator
Triaged
Wishlist
Unassigned

Bug Description

When I use the current css sprite generator on my personal website http://www.olino.org/us/ for generating a sprite for all the images used in the current CSS the resulting sprite is twice the size of the combined size of the separate images themselfs.

The sprite size can be reduced considerably by packing the images using a smart algorithm. An exampe and pseudo code for this can be found on: http://www.blackpawn.com/texts/lightmaps/default.html

This algorithm is also used for a wordpress plugin which produces highly efficient sprites (sizes):
http://www.mummey.org/csprites/

Revision history for this message
Ed Eliot (ejeliot) wrote :

There's an option to compress PNGs on output (Optipng). If you're using PNGs did you try selecting that option? It should dramatically reduce file sizes. I could also look into adding similar compression tools for GIFs and JPEGs.

Revision history for this message
Stuart Colville (muffinresearch) wrote :

When you refer to size I assume you mean file size? Can you provide an example highlighting the case for needing to pack images in a different way?

Changed in css-sprite-generator:
importance: Undecided → Wishlist
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.