- From: 張俊芝 <notifications@github.com>
- Date: Sun, 26 Aug 2018 23:59:04 -0700
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 27 August 2018 06:59:25 UTC
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);
});
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/issues/107
Received on Monday, 27 August 2018 06:59:25 UTC