Re: [whatwg] ImageBitmap feature requests

On Fri, May 16, 2014 at 7:47 PM, Justin Novosad <junov@google.com> wrote:
> On Fri, May 9, 2014 at 5:51 PM, Ian Hickson <ian@hixie.ch> wrote:
>> This is an interesting idea. I don't know what the state of the other
>> methods discussed here is (see my comment at the top of the e-mail cited
>> above). However, I've filed a bug for this too:
>>
>>    https://www.w3.org/Bugs/Public/show_bug.cgi?id=25647
>>
>> I think what might make the most sense here is to have a way to
>> destructively convert an ImageBitmap into an <img>, rather than doing
>> anything with a canvas.
>
> What would go in the 'src' attribute of the image element? A a data URL?

Maybe we should have <img>.srcObject similar to what we're doing for
media elements. <img>.src can simply return about:imagebitmap or some
such. That way you can also assign a Blob to an <img> element without
having to do the weird createObjectURL() hack that might leak memory
if you're not careful.


-- 
http://annevankesteren.nl/

Received on Saturday, 17 May 2014 11:19:07 UTC