W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] <picture> / <img srcset> not needed

From: Glenn Maynard <glenn@zewt.org>
Date: Wed, 16 May 2012 17:57:45 -0500
Message-ID: <CABirCh9d8-YV_tfp5s0LHfTjV+-+9_GL9ETmLLuHfySeTb+W1g@mail.gmail.com>
To: Aldrik Dunbar <aldrik@gmail.com>
Cc: whatwg@whatwg.org, "Tab Atkins Jr." <jackalmage@gmail.com>
On Wed, May 16, 2012 at 5:44 PM, Aldrik Dunbar <aldrik@gmail.com> wrote:

> Of course if someone comes up with a progressively loaded image format
> this could be handled much more elegantly.

Both PNG and JPEG have had this forever.  (PNG's approach is crude, but
JPEG's is reasonable.)  However, there's no way to control it client-side;
without somehow knowing how many bytes to load for a certain amount of
detail, all you can do is load the whole thing (or make multiple requests,
which is obviously worse).   I've thought about this in the past, but it's
a hard thing to make practical use of.

Glenn Maynard
Received on Wednesday, 16 May 2012 22:58:21 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:42 UTC