Sprite Production Field Notes

sprite sheet maker

Move sprite bytes between preview windows, and recreate each window's image

A desktop sprite sheet maker can have a gallery and an inspector that both want the same decoded frame. In Tkinter, a Canvas can use a PhotoImage created under the same Tcl interpreter. A Toplevel under the existing root shares that interpreter. A second Tk root introduces an independent image table, so the first root's named photo cannot be resolved there.

Choose how it works at the boundary between the preview UI and the asset model. In a single-root app, keep an image cache owned by that root and let the inspector borrow images from it. If the tools are independent, use a portable payload such as PNG bytes with a source revision. Each receiving view can decode the payload into its own image table. Include the rendering scale in the receiving view's cache key if the gallery and inspector display different resolutions.

Test with a deliberately asymmetric L-shaped tile. Open the gallery, create the receiving preview, close it, change one pixel, and reopen it. The remaining view should stay responsive and the reopened inspector should show the new pixel. The native ownership example and two-window fixture are in technical guide and test fixture.

Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.