mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
document.exportForWeb renders the artboard or the art and writes GIF, JPEG, PNG-8 or PNG-24 files. When the art held an image that the renderer could not decode, the renderer drew nothing for it, and the files lacked the image with no message: the reply had no warnings at all. A raster export of the same art warns that "an image couldn't be decoded and is missing from the picture". document.exportForWeb and document.exportForWeb.preview now compare decode_failures before and after they render, as raster exports do, and their replies carry that text in `warnings`. The files are still written. Save, Download and Preview in Browser in the Save for Web dialog show the first warning in the status bar as Save As shows a save's notes. Docs: docs/mcp.md (Save for Web), docs/control-protocol.md.