Sprite Production Field Notes

sprite ai

Separate the SVG Drawing Canvas from the AI Icon’s Export Size

An AI-generated icon can have CSS units on its width and height but still need a separate coordinate rectangle for the source paths. If a normalization tool tries to infer the drawing canvas from dimensions it cannot parse, the asset can fail before rasterization.

Keep the authoring coordinates explicit

In an example 20-by-16 drawing canvas, preserve the numeric viewBox from the source. Choose a marker ten units from the left. Render the icon at 20 × 16 and at 40 × 32. With the same viewport alignment, the marker should remain halfway across both outputs. Check the normalized geometry separately from the PNG pixel dimensions.

Compare a unit-suffixed draft against the normalized export

Use the exact optimizer and renderer intended for delivery. Record whether missing viewBox data makes that version reject CSS-suffixed sizes. If adding a viewBox repairs the file but changes where a path appears, inspect the chosen logical bounds and aspect-ratio policy rather than stretching the icon to match its preview.

FrameSprite’s technical guide and test fixture compares PicoSVG output with and without explicit coordinate bounds for a unit-suffixed source.

Prepared by the FrameSprite Workflow Team with AI assistance. Illustrative examples are labeled in the text.