Docs
API Docs

Configuration

You can easily configure the editor to disable specific tools, hide buttons etc. by adding properties to the options object passed to the Server:

{
  license: 'INSERT YOUR LICENSE HERE AS STRING ', // String - Your license (Required)
  logLevel: 'warn', // String - `trace`, `info`, `warn`, `error` or `log`. Defaults to `warn`.
  assets: {
    baseUrl: '../../photoeditorsdk-server/assets' //
  },
  // editor configuration
  editor: {
    preferredRenderer: 'webgl', // String - Defaults to `webgl`. Available are `webgl` and `canvas`.
    smoothUpscaling: false, // Boolean - Toggles smooth downscaling of images and sprites. Might have a negative impact on performance, therefor default is `false`.
    smoothDownscaling: false, // Boolean - Toggles smooth upscaling of images and sprites. Might have a negative impact on performance, therefor default is `false`.
    transparent: false, // Boolean - Should the canvas background be transparent. Defaults to `false`
    export: {
      format: 'image/jpeg', // String -
      type: PhotoEditorServer.SDK.RenderType.BUFFER
    }
  }
}