问题
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