W3C home > Mailing lists > Public > public-html@w3.org > May 2011

Re: Adaptive images

From: Karl Dubost <karld@opera.com>
Date: Tue, 31 May 2011 09:04:19 -0400
Message-Id: <DE8CFB85-CEC5-4002-B3B8-8E11A6F30534@opera.com>
Cc: Henri Sivonen <hsivonen@iki.fi>, "public-html@w3.org" <public-html@w3.org>
To: Leonard Rosenthol <lrosenth@adobe.com>

Le 31 mai 2011 à 08:39, Leonard Rosenthol a écrit :
> Images would be in the content/HTML, but the choice of which one would be in the CSS....

hmmm :) let's make it clearer. An IMG element with an URI.

<img src="http://example.org/foo"/>

I do a GET on http://example.org/foo
which gives the image depending on the Accept Headers, I can receive things like

Content-Location: foo.jpg
or Content-Location: foo.png
or Content-Location: foo.svg

If the browser was sending along the size of the screen with the first HTML request, it would be possible to have 

Content-Location: foo-big.jpg
or Content-Location: foo-medium.jpg
or Content-Location: foo-small.jpg

and/or the format variations of it.

In this scenario you do not need to put a list of all images in the content. The negotiation takes care of it.

Karl Dubost - http://dev.opera.com/
Developer Relations & Tools, Opera Software
Received on Tuesday, 31 May 2011 13:05:03 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:13 UTC