Canvas.msToBlob does not match toBlob spec

Issue #7226452 • Assigned to Christian F.

Details

Author
Neil K.
Created
Apr 16, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Reports
Reported by 3 people

Sign in to watch or report this issue.

Steps to reproduce

The Canvas.msToBlob() method returns a Blob but the spec says it should take a callback function that receives the Blob some time later:
void toBlob(FileCallback? _callback, optional DOMString type, any… arguments);
https://www.w3.org/TR/html5/scripting-1.html#dom-canvas-toblob

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Assigned To to “Rick J.”

      Changed Assigned To to “Christian F.”

    • Urgently requesting this feature. It prevents us from supporting high performance image encoding and upload, which is needed for various machine learning / video analysis tasks.

      The asynchronous spec of the standard is important for performance, so that image processing can occur in a separate thread using native implementations rather than blocking the Javascript thread.

      The only workarounds are Javascript wrappers with unacceptable performance (unusable for anything that is working with webcam video).

      WebP image support would be a bonus (it’s 40% smaller than JPEG for equivalent quality in our tests), but JPEG would suffice.

      Many thanks
      Dave

    You need to sign in to your Microsoft account to add a comment.

    Sign in