PESDK/Server/Introduction
Export
Learn how to change the export options on runtime.
With version v4.23.0
of the Server it is now possible to change the export options on runtime.
- pesdkServer.render(configuration)+ pesdkServer.deserialize(configuration).then(() => pesdkServer.export(false, options))
Available Options:
options
Objectformat
String - The mime type of the exported image. Defaults toimage/png
. Available formats vary by browser.type
PhotoEditorSDK.RenderType - Specifies the export type (image or data url)download
Boolean - Should a download dialog be displayed on export?fileBasename
String - The base file name, defaults tophotoeditorsdk-export
quality
Number - JPEG quality, defaults to 0.8