mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
ui.render, which render_preview and screenshot call in the headless session and in the app, rendered the artboard with the canvas options: 8-bit compositing and edges smoothed shape by shape. A PNG export composites in floating point and supersamples edges, so the preview showed edge colors the exported file does not have, most visibly where shapes meet edge to edge. ui.render now renders with the options of a PNG export on white, so its pixels equal the export's at the same scale. render_preview also no longer enlarges an artboard smaller than max_side: with the default max_side of 1024, a 612 x 792 page came back as an interpolated 791 x 1024 image, and it now comes back at 612 x 792. docs/mcp.md and docs/control-protocol.md describe this.