Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The function adaptive_image_resolution($resolutions) get a break point with a white space, and return a resolution string with a space. .e.g. ' 480'.
Finally, we get a image url with a white space character. e.g. 'http://example.com/sites/default/files/styles/image_style/public/slidesh... 1260/picture.png' (there is a space before "1260").
Surely, the module can still get the image path correct, but with a ugly url.
The patch can fix it.
Comment | File | Size | Author |
---|---|---|---|
adaptive_image_correct_resolution.patch | 612 bytes | aaronlea |
Comments
Comment #1
n1k CreditAttribution: n1k commentedUpdated status.
Comment #2
sanduhrsI changed the line
if ($client_width <= $break_point) {
to
if ($client_width <= trim($break_point, ' ')) {
Commited, thanks.
Comment #3
sanduhrsComment #4.0
(not verified) CreditAttribution: commentedSee the patch code