Skip to content

URL.createObjectURL should also accept ImageBitmap #107

@Zhang-Junzhi

Description

@Zhang-Junzhi

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);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions