Hey guys! Love the module, but I can't seem to get adaptive images to display on my iPhone or Android devices when the images are displayed in Views.

My website is http://hornsbyrslgolfclub.com.au which is responsive to mobile devices.

I have the correct edit to my .htaccess

# AIS: Adaptive Image Style
  RewriteBase /
  RewriteCond %{REQUEST_URI} ^(.+)/files/styles/adaptive/(.+)$
  RewriteCond %{REQUEST_URI} !/modules/image/sample.png
  RewriteCond %{HTTP_COOKIE} ais=([a-z0-9-_]+)
  RewriteRule ^(.+)/files/styles/adaptive/(.+)$ $1/files/styles/%1/$2 [R=302,L]

The images display when looking at the normal node, but when I have content displayed in a View (on the home page block NEXT GAME, on the home page slidehow, and the menu item http://hornsbyrslgolfclub.com.au/upcoming-rounds) the images don't display.

Am I missing something? Let me know if you need more info on my issue.

Comments

spotzero’s picture

Status: Active » Closed (duplicate)

Hi Simon,

After checking out your site, looks like your problem is this one: Issues #1925896 - Core update 7.20 breaks AIS.

Check out that issue for the "solution".

In Drupal 7.20, a change was introduced to image styles that makes Drupal only generate an image of a specific style if that url includes a specific token in it. At the moment, out of the box, AIS can't display images that haven't been generated without turning off this "feature".