sprite sheet maker
Trim a white sprite without mistaking it for an empty cel
A sprite sheet maker can classify visible white art as a blank cel when its trim operation compares flattened colors to a white matte. This is easy to miss if every approval thumbnail uses the same presentation background. A production crop for transparent art needs a presence rule tied to coverage.
Separate the visible icon from its backing color
Build two nine-by-seven RGBA cels. In the first, place an opaque white shape away from the origin and add a one-step antialiased edge. In the second, keep an image with all alpha samples zero. Run the production trim and check the box relative to the original canvas. The first cel should survive regardless of its white appearance. The second should follow the project's intentional empty-frame rule. Repeat after changing the opaque shape from white to dark blue. If coverage stays fixed, the measured production bounds should stay fixed.
technical guide and test fixture documents a libvips fixture that returns different trim bounds on white and black mattes with the same source alpha. Choose a threshold that preserves the edge pixels your renderer uses. Record it alongside the source crop and report empty results before the packer assigns an atlas slot.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.