Responsive images proposed by WHATWG

Attempts to deal with high-res displays spark debate

Responsive images proposed by WHATWG
Web images look blurry on high-res displays, such as the new iPad's. Responsive images will provide a standards-based solution

A post by Mathew Marquis on the W3C Responsive Images Community Group has outlined proposals to deal with responsive images on the web.

At present, most solutions require workarounds and scripts, and many ‘force’ users to download more data than should be necessary. However, with high-res displays likely to become commonplace over the next year and responsive web design increasingly popular among web designers, it’s clear standards need to keep up.

Marquis explained one proposal surrounds the existing 'img' element, adding syntax to deal with multiple sources by way of a new 'set' attribute. However, the community group proposes utilising the 'picture' element, with multiple 'source' elements to define images to be used for viewports of specific sizes and/or devices with specific pixel ratios.

Marquis said that the existing proposal wasn’t as developer-friendly as the one based around 'picture', and he asked for developer opinions, providing various means of making yourself heard at the end of the article.

The proposals have already sparked debate. Although developers appear broadly positive regarding the picture proposal, Adaptive Images creator Matt Wilcox argued 'set' was awful, with unclear syntax, an over-reliance on image dimensions and pixel density multipliers, and use of pixels “in an era where pixels are dying”. However, he also disliked the repetition within 'picture'. Others noted that the 'picture' syntax is at least consistent with that used in the 'video' element, although the term ‘picture’ isn’t as semantic as it should be.

1 comment

Comment: 1

What I would love to see is widespread adoption of the JPEG2000 standard. This solves the main issues:

From http://en.wikipedia.org/wiki/JPEG_2000#Features


  • Multiple resolution representation: JPEG 2000 decomposes the image into a multiple resolution representation in the course of its compression process. This representation can be put to use for other image presentation purposes beyond compression as such.



  • Progressive transmission by pixel and resolution accuracy, commonly referred to as progressive decoding and signal-to-noise ratio (SNR) scalability: JPEG 2000 provides efficient code-stream organizations which are progressive by pixel accuracy and by image resolution (or by image size). This way, after a smaller part of the whole file has been received, the viewer can see a lower quality version of the final picture. The quality then improves progressively through downloading more data bits from the source. The 1992 JPEG standard also has a progressive transmission feature but it is rarely used.[citation needed]

June issue on sale now!

The Week in Web Design

Sign up to our 'Week in Web Design' newsletter!

Hosting Directory
.net digital edition
Treat yourself to our geeky merchandise!
site stat collection