Which browsers (and versions) support the Canvas.toBlob method?

后端 未结 5 2098
醉话见心
醉话见心 2020-12-06 09:19

I\'m working on a minimalist image creation project and I need to have the ability to create images within the browser that are in-turn used on a server. So far, the

5条回答
  •  太阳男子
    2020-12-06 09:40

    If you may need it, this js file implement toBlob function in browsers which don't support it already: https://github.com/eligrey/canvas-toBlob.js

    Here the post by the authors and here the expanded source code.

    However, it looks like even this library doesn't works in all the browsers, as it

    "requires BlobBuilder support to function, which is not present in all browsers"

提交回复
热议问题