srcset support and default dimensions

Created on 11 December 2020, about 4 years ago
Updated 28 February 2023, almost 2 years ago

Hi,

I've tried your module in one of our projects and find it very useful! Ran into two issues though, addressed in the attached patch.

  1. I've added a preprocess function for responsive images to also replace images referenced in their srcset attributes
  2. I've encountered quite a few images where no height and width were passed to the preprocess function. That results in your module requesting just https://via.placeholder.com/x.png, which obviously fails. So the patch just adds arbitrary fallback values of 200px to ensure no request fails.
๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany marcoliver Neuss, NRW, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024