On Fri, May 16, 2014 at 7:47 PM, Justin Novosad <ju...@google.com> wrote:
> On Fri, May 9, 2014 at 5:51 PM, Ian Hickson <i...@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/

Reply via email to