Re: Adaptive images

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