Closed (fixed)
Project:
Adaptive Image
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2012 at 06:45 UTC
Updated:
15 Feb 2013 at 16:20 UTC
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 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) commentedSee the patch code