sitegeist / sms-responsive-images

This TYPO3 extension provides ViewHelpers and configuration to render valid responsive images based on TYPO3's image cropping tool.
GNU General Public License v2.0
34 stars 19 forks source link

Use <img src> instead of <img srcset> when inside <picture> #54

Closed jonaseberle closed 5 years ago

jonaseberle commented 5 years ago

When using the ImageViewHelper like this

<sms:image image="{file}" breakpoints="

this HTML gets output:

<picture>
  <source srcset="..." media="..." sizes="...">
  ...
  <img srcset="..." ...></picture>
</picture>

IMHO the <img> tag should have src= instead of srcset=

In the current way IE11 does not display the image.

jonaseberle commented 5 years ago

By using picturefill=0, an src= is rendered.

Also there will be some changes in this area according to Simon. Thanks for your help via Slack!