Sprite Production Field Notes

sprite sheet maker

Decode a Sprite Thumbnail and Full Asset in Either Order

An atlas importer may first make a thumbnail and later decode the same source at full size. If that workflow reuses a consumed device, success can depend on which view the user opened first. Test the shared byte source under both sequences.

Swap consumer order in the test

Use an 8 × 4 fixture with a colored mark away from the origin. Run thumbnail first, then full decode. Repeat in reverse order and verify the emitted full-size content and the thumbnail’s expected marker. Add a direct second-decode control that intentionally leaves the buffer at its consumed position. The test should report a read-boundary error rather than classify the original PNG as corrupt.

FrameSprite's technical guide and test fixture documents an in-memory Qt decode that succeeds again after rewinding. Give each independent consumer a fresh readable device or an explicit rewind. If the underlying input is not seekable, retain the asset bytes once before offering repeat decode. Keep sequential animation reads separate from this static-image ownership rule.

Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.