Issue Feature Closed

#49723Improve rendering of responsive images

Georg Ringer 07/06/13, 12:17 updated 10/02/18, 12:12

Description

There are some tasks which could be improved when responsives images should be rendered:

  • Don’t output width/height tag in img tag
  • Improved option for setting multiple sources

possible variants

http://responsejs.com/

<img src="lo-fi.png" data-min-device-width-641="hi-fi.png" alt="example" />
<img src="image.jpg" alt="" data-src-600px="image-600px.jpg">

Support srcset

<img alt="The Breakfast Combo" src="banner.jpeg"
   srcset="banner-HD.jpeg 2x, banner-phone.jpeg 100w,
   banner-phone-HD.jpeg 100w 2x">

picture tag

<picture width="500" height="500">
  <source src="large.jpg"  media="(min-width: 45em)">
  <source src="middle.jpg" media="(min-width: 18em)">
  <img src="small.jpg" alt="">
  <p>Accessible text</p>
</picture>

Reviews 2

Subtasks 1