Back to Tldraw

Export canvas as image

apps/examples/src/examples/data/assets/export-canvas-as-image/README.md

5.0.1273 B
Original Source

Export the entire canvas as an image file.


This example shows how you can use the Editor.toImage() function to create an image of all shapes on the canvas and then download it. The easiest way to download an image is to use the download attribute of a link element.