sprite ai
Check Odd-Pixel Placements Before Approving a Compact AI Sprite Preview
A sprite AI preview can use small changed rectangles to keep the animation lightweight. If a marker appears one pixel away from its intended spot, compare the cropped frame’s internal origin with the encoded placement on the animation canvas.
Prove the actual display coordinate
In a simple patch test, place a visible marker at (3, 5) when fully composited. If the writer permits only even offsets, use an origin of (2, 4) and offset the paint inside the patch by (1, 1). Compare the decoded result against a full-frame reference with the same marker. This isolates coordinate errors from the appearance of the generated sprite.
Verify affected pixels outside the marker
Use an occupied neighboring pixel in a second frame and confirm it stays or clears according to the intended blending and disposal policy. Transparent padding can change that policy’s effect, so compare the full decoded canvas. If the compact version differs, use a known-good full-frame output in the review rather than asking the artist to correct the underlying pose.
FrameSprite’s technical guide and test fixture contains the native webpmux measurements for requested and encoded offsets. The display check above protects the reader who reviews the composited preview rather than the raw header.
Prepared by the FrameSprite Workflow Team with AI assistance. Illustrative examples are labeled in the text.