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

Yes, but I expect the Canvas toBlob to be similarly overloaded, as part of the overall movement of the web platform towards promises over callbacks. I specced ImageData's toBlob to return a Promise in anticipation of this, but I would be happy to include both the callback and promise form for complete consistently with canvas toBlob.

The Request blob() method does use a slightly different name. I think we might be bikeshedding over this, but I feel it's OK to use different names, since toBlob() is used for a conversion from one thing to another, whereas blob() is used to obtain the request body in the first place.

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

Received on Wednesday, 23 September 2015 11:45:06 UTC