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

Re: [whatwg] responsive images

From: Mikko Rantalainen <mikko.rantalainen@peda.net>
Date: Wed, 23 May 2012 12:21:45 +0300
Message-ID: <4FBCAC29.9010602@peda.net>
To: whatwg@lists.whatwg.org
2012-05-22 13:53 Europe/Helsinki: Paul Court:
> <img src="face-600-200@1.jpeg" alt="" srcset="face-600-200@1.jpeg
> 600w 200h 1x, face-600-200@2.jpeg 600w 200h 2x, face-icon.png 200w
> 200h">
> Not to mention, what happens when a 3x device is released? Do I have
> to change all my code again?

As I see it, there's no way around it. And the important point to notice
is that this fact does not depend on the syntax.

Also notice that it will be much less work to add the extra 3x
declaration to the source than the work required to prepare and upload
the (not yet created) 3x image variants.

If your source format is some vector format, I'd suggest using an SVG
image as 2x variant and be done with it. In the future, a 17x display
will default to highest resolution variant you're providing and if
that's an actual vector data, you'll be fine.

Received on Wednesday, 23 May 2012 09:22:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:13 UTC