Looking for
We've rebranded!
API Docs

Export to Server

To export the resulting image as an Image object or as a data url, you can use the export method:

  .then((image) => {

The export format (e.g. DataURL or Image) and file format (e.g. PNG or JPEG) can be specified using the editor configuration. See the API documentation for available RenderTypes and ImageFormats. When exporting using the DATAURL format, you can pass the resulting Data URL to a server, decode it there and write it to a file.