One request, one cache entry
Forty small icons are forty round trips on a cold connection and forty cache entries to invalidate. A sheet is one of each, which is why icon systems still use it even though HTTP/2 multiplexes requests: multiplexing removes the ordering cost, not the per-request overhead of headers, TLS records and cache lookups. The trade is that changing one icon changes the file, so the browser refetches all forty. That is a good trade for a set that changes once a release and a bad one for a set that changes weekly.
The shelf layout and why it is predictable
Frames are sorted by height, tallest first, and each one is placed on the first row where it fits under the width you chose. Every row starts at the left edge and grows until the next frame will not fit, then a new row begins below the tallest frame in the previous one. The result wastes space in the ragged right edge of each row, which is why a sheet is rarely more than about seventy percent filled. The alternative, a search over orderings that tries to close those gaps, produces a slightly smaller file and a build that cannot be reproduced without recording the search itself.
| Decision | What it changes | What it costs |
| Frames sorted by height | Shorter rows, less waste | Frame order in the CSS is not your order |
| A gap between frames | Room for a shadow or an extruded edge | A few percent of the sheet |
| Power-of-two height | Compatibility with old texture rules | Transparent rows at the bottom |
| A wider sheet | Fewer rows, lower height | Wider than the device's maximum texture, which is a real limit on old phones |
Retina is a second sheet, not a scale factor
A 2x sheet is not this sheet enlarged: it is the same layout drawn from the 2x files, and it is addressed with the same coordinates multiplied by two. If you only have 1x art, packing it and scaling the result gives a soft image with the same pixel count as the original, which is not a retina asset. The usual arrangement is two sheets and a media query or an image-set() in CSS, and both of them need the coordinates to be identical, which is why the layout has to be deterministic.
Slicing is the reverse arithmetic
A sheet that already ships has its frames at positions somebody else decided. Dividing it into a grid is the only way to recover them without a manifest, and it works only when the frames are evenly sized: a sheet with rows of different heights cannot be read by rows and columns alone. The offset field exists because a texture tool often adds a one-pixel transparent border, which shifts every cell by one and is invisible until a background position is off by exactly one pixel.
Before the frames are packed, Pikkola Image resizes and converts them, and Pikkola SVG is where a vector becomes a small raster worth putting in a sheet.