PhotoEditorSDK : export to server without auto download?

故事扮演 提交于 2019-12-11 01:32:16

问题


I am using photoeditorsdk in my Angular app. There is an export to server function in the docs:

editor.export(
  PhotoEditorSDK.RenderType.DATAURL, 
  PhotoEditorSDK.ImageFormat.JPEG,
  0.8 // JPEG quality: 80%
).then((dataUrl) => {
  // Upload to server
})

I get the image dataUrl, but the image is also downloaded at the browser. I want to prevent the download.


回答1:


I got help from their support, in the configuration guide : https://docs.photoeditorsdk.com/guides/html5/v4-DesktopUI/introduction/configuration at the bottom is the export object, just need to pass download: false.



来源:https://stackoverflow.com/questions/47286778/photoeditorsdk-export-to-server-without-auto-download

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!