You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, an ImageBitmap has already been created for a Blob for some other uses, before using URL.createObjectURL, so there's no need to again use the Blob to create an object URL. If ImageBitmap were allowed for URL.createObjectURL, code would be more efficient:
createImageBitmap(someBlob).then(imageBitmap =>
{
// Some other use of the image bitmap
...
// Now create the URL
const imageURL = URL.createObjectURL(imageBitmap);
});