Docs
v4
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:

sdk.export(
  PhotoEditorSDK.RenderType.IMAGE, // Export as `Image` object
  PhotoEditorSDK.ImageFormat.JPEG, // Export as JPEG
  0.8 // JPEG quality: 80%
).then((image) => {
  document.body.appendChild(image)
})

See the API documentation for available RenderTypes and ImageFormats