Re: [img-conversion] toBlob() Having two optional kinda sucks... let's merge them. (#13)

Sorry, you are correct. It's CanvasRenderingContext2D that I, and many others, hate. 

I guess the only other API I can think of the top of my head is Fetch's Request.blob() - which returns a promise: https://fetch.spec.whatwg.org/#dom-body-blob

I generally agree about consistency, but are we not already modifying the signature of .toBlob()  by  dropping the callback as the first argument? 

   

---
Reply to this email directly or view it on GitHub:
https://github.com/WICG/img-conversion/issues/13#issuecomment-142439797

Received on Tuesday, 22 September 2015 22:29:29 UTC