sprite sheet maker
Review Sprite Sheet Memory Before Raising a Decode Limit
A tiny upload does not necessarily become a small raster. A mostly transparent generated atlas can compress well while allocating millions of decoded bytes in a sprite preview or game importer. Set a meaningful memory budget based on the intended target.
Compare two files with similar transfer size
Create an innocuous small fixture and a larger, mostly solid rectangle of the same pixel format. Check header dimensions, estimate decoded storage from the format and stride, then attempt actual decode under the current policy. The larger atlas may be rejected even though both files appear small to an upload widget. Log the transfer size, dimensions, expected decoded storage and the decoder outcome separately.
The FrameSprite technical guide and test fixture gives a Qt control where a sub-10 KiB PNG decodes to a 600 × 600 RGBA raster only under an adequate allocation limit. When a project cannot afford that working size, split the atlas upstream and test the number of texture uploads the new package requires. That prevents fixing a preview limit by creating an unacceptable runtime memory cost.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.