Load Canvas as image without .toDataUrl ()

Is it possible to load a (edited) Canvas Element image into HTMLwithout using a function .toDataUrl()? I tested some frameworks, but they still use this feature.

+4
source share
1 answer

In new browsers, you can get MUCH LARGE images and better performance using the async method canvas.toBlob(callback, mimeType, qualityArgument);

see mdc article for details and compatibility (mainly IE10 +)

blob , DataURL , , , .

blob dataURL, FileReader.readAsDataURL(blob)

+4

All Articles