When you build a browser-based infinite canvas for commercial photography, architecture renders, and video storyboarding, three hard engineering problems show up immediately:
Halo ghosting on >1536px inpainting and layer-splitting masks
Keeping product geometry locked during multi-light relighting and 3D angle orbits
Instant frame-accurate video shot detection without uploading 200MB MP4s to a server
Here is how we engineered and solved all three inside VisoCanvas with zero external frontend frameworks and zero npm backend dependencies.
1. Eliminating >1536px Inpaint & Split-Layer Ghosting in O(N) Time
When you run background matting or object removal on a high-resolution commercial photo (2K–4K), a tight binary mask leaves a subtle 6–24px semi-transparent edge halo around hair, watch lugs, or glass reflections.…