Small and large is cool. But what about sites that are optimizing for more than 2 devices. For example, phone, tablet and desktop. It would be great if the user could devine an arbitrary number of styles. Note, I haven't actually tried the module yet but just read te description on the project page so forgive me if this is already possible.

Comments

rupl’s picture

Seems like this is possible to implement:
https://github.com/filamentgroup/Responsive-Images/blob/5b0db40c2b08e58a...

// Cookie value
cookieValue = def.cookieValue || sw > 500 ?  ( sw > 1000 ? "large" : "medium" ) : "small",
anthonyR’s picture

I think this definitely is something for the future of responsive/adaptive images.
Like the project at http://adaptive-images.com/ (not Drupal specific)

kingfisher64’s picture

I'd love to see this is feature in the latest versions. I was thinking of precicely this once used. It's inevitable that we are going to want to display different images for different devices not just small and large.

xsmall, small, medium, large, xlarge and xxlarge would probably accomodate all devices and all screen resolutions.

Can we have this in the next beta version?

kingfisher64’s picture

any chance of multiple sizes Sven in a new release?

small & large is not enough.

thumbnail, small, medium, large, xlarge would be great.

chrisjlee’s picture

Wouldn't that mean double the http requests (4 instead of 2 if you have 4 different breakpoints)?

rupl’s picture

Nope, because JS figures out which one you want then asks for only that resolution. It doesn't work like CSS, with successive MQ causing successive requests.