sprite ai
Catch Dark AI Sprite Edges at the Renderer-to-PNG Boundary
A rendered AI sprite or vector effect can carry premultiplied color values, while a downstream PNG workflow expects straight color. Reordering channel bytes fixes the component order but cannot restore RGB that was already multiplied by alpha. The mismatch is most obvious around partially covered pixels.
Use a color that should stay bright
Create a small witness with a highly saturated red mark at roughly half opacity. For an illustrative premultiplied pixel with red and alpha both near 128, straight red should recover near 255 without changing alpha. Compare the decoded PNG and its blend over dark and light backgrounds. Include an opaque reference whose color should be unchanged and a fully transparent sample where the original RGB cannot be reconstructed.
Document the exact interface where color semantics change. If the consumer is designed to accept premultiplied pixels already, another conversion can introduce a new error. Inspect the producer and receiver before changing the pipeline.
FrameSprite's technical guide and test fixture records a native rlottie example where the decoded component order alone leaves a dark edge. The saturated witness makes that distinction easy to check.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.