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.

CommentFileSizeAuthor
adaptive_image_correct_resolution.patch612 bytesaaronlea
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

n1k’s picture

Status: Active » Needs review

Updated status.

sanduhrs’s picture

Version: 7.x-1.4 » 7.x-1.x-dev

I changed the line
if ($client_width <= $break_point) {
to
if ($client_width <= trim($break_point, ' ')) {

Commited, thanks.

sanduhrs’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

See the patch code