Reduce sprite size by packing images

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

Bug Description

When I use the current css sprite generator on my personal website 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:

This algorithm is also used for a wordpress plugin which produces highly efficient sprites (sizes):

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  Edit
Everyone can see this information.

Other bug subscribers