toDATAURL JPEG not working properly in chrome packaged app

不打扰是莪最后的温柔 提交于 2019-12-13 04:55:16

问题


When I try a: canvas.toDataURL('image/jpeg'); in a chrome packaged app the result is a png data url not a jpeg url. Also, I cannot put in a quality either ie. canvas.toDataURL("image/jpeg",0.7); An exception throws saying the method does not exist, if and only if I add the quality metric.

Am I doing something wrong?

来源:https://stackoverflow.com/questions/16127441/todataurl-jpeg-not-working-properly-in-chrome-packaged-app

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