sprite ai
Detect Missing Gradient Dependencies When Extracting an AI Icon
An icon can contain a valid closed path yet disappear because its fill points at a definition omitted from the delivered SVG. This often happens when a packer extracts one icon from a master document and copies the visible shapes without the definitions they reference.
Test dependency resolution and then render
Prepare a gradient-filled witness. Record the local fill reference and the ID of the expected paint definition. Extract the icon using the production path and check that the referenced definition resolves in the actual output. Render the detached SVG and require nonzero alpha at a known interior point. Use a second point elsewhere on the gradient to catch a fallback that paints the entire icon with a single solid color.
Add a negative copy from which the definition was deliberately removed. Its path count can match the accepted file, so an appearance check should still fail. Keep the editable master intact.
FrameSprite's technical guide and test fixture compares a vector path with missing paint against the same path with its definition present. Both structure and rendered coverage belong in the release report.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.