Re: Image.toBlob()

2012-02-02 Thread Anne van Kesteren
On Sat, 28 Jan 2012 09:27:08 +0100, Bronislav Klučka bronislav.klu...@bauglir.com wrote: would it be possible to have Image.toBlob() function? We are introducing Canvas.toBlob(), image (and maybe video, audio) would be nice addition Are the additional resource required to drawing the image

Re: Image.toBlob()

2012-02-02 Thread Glenn Maynard
On Thu, Feb 2, 2012 at 4:24 PM, Anne van Kesteren ann...@opera.com wrote: On Sat, 28 Jan 2012 09:27:08 +0100, Bronislav Klučka bronislav.klu...@bauglir.com wrote: would it be possible to have Image.toBlob() function? We are introducing Canvas.toBlob(), image (and maybe video, audio) would

Re: Image.toBlob()

2012-02-02 Thread Charles Pritchard
On Feb 2, 2012, at 2:24 PM, Anne van Kesteren ann...@opera.com wrote: On Sat, 28 Jan 2012 09:27:08 +0100, Bronislav Klučka bronislav.klu...@bauglir.com wrote: would it be possible to have Image.toBlob() function? We are introducing Canvas.toBlob(), image (and maybe video, audio) would

Re: Image.toBlob()

2012-02-02 Thread Bronislav Klučka
On 2.2.2012 23:24, Anne van Kesteren wrote: On Sat, 28 Jan 2012 09:27:08 +0100, Bronislav Klučka bronislav.klu...@bauglir.com wrote: would it be possible to have Image.toBlob() function? We are introducing Canvas.toBlob(), image (and maybe video, audio) would be nice addition

Re: Image.toBlob()

2012-02-02 Thread Glenn Maynard
(You're blue today.) On Thu, Feb 2, 2012 at 4:34 PM, Charles Pritchard ch...@jumis.com wrote: They are a pain, and lossy. You don't want to do drawImage then a toBlob png on an image that's a jpeg. We've had to use followup XHR calls which may or may not do another http fetch. We went the

Re: Image.toBlob()

2012-02-02 Thread Charles Pritchard
we're at a bit of a disconnect. My concern is getting a copy of the binary data of an image, not getting a copy of the display pixels. I was hoping Image.toBlob would handle that. There's all sorts of yummy information in that binary data. And I dislike the extra XHR calls it requires to fish out

Re: Image.toBlob()

2012-02-02 Thread Glenn Maynard
On Thu, Feb 2, 2012 at 10:26 PM, Charles Pritchard ch...@jumis.com wrote: ** There's nothing like it in current implementations. I'd think it rare to come across an instance where an author has only made a clone image, and done nothing else. They'd just use the img element in such a case.

Re: Image.toBlob()

2012-02-02 Thread Charles Pritchard
the whole idea. You can transparently bypass the process of blitting to a backbuffer for this case (modulo the zero alpha issue). It's just an optimization. Oh, that's not a use case I need. There's no real overhead. I need the use case of Image.toBlob() returning a binary copy

Re: Image.toBlob()

2012-01-28 Thread Kyle Huey
2012/1/28 Bronislav Klučka bronislav.klu...@bauglir.com Hello, would it be possible to have Image.toBlob() function? We are introducing Canvas.toBlob(), image (and maybe video, audio) would be nice addition Brona Proposing a more detailed spec would be a good place to start. Some example

Re: Image.toBlob()

2012-01-28 Thread Bronislav Klučka
On 28.1.2012 10:19, Kyle Huey wrote: 2012/1/28 Bronislav Klučka bronislav.klu...@bauglir.com mailto:bronislav.klu...@bauglir.com Hello, would it be possible to have Image.toBlob() function? We are introducing Canvas.toBlob(), image (and maybe video, audio) would be nice