Closed (works as designed)
Project:
ZURB Interchange
Version:
7.x-1.0-beta3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2013 at 00:05 UTC
Updated:
24 Jan 2014 at 14:04 UTC
Jump to comment: Most recent
Comments
Comment #1
kevinquillen commentedYou only have to provide the original size image, and image cache will generate the derivatives. Interchange will swap between the image cache URLs as the browser resizes, or loaded at a particular breakpoint width (mobile devices). So, just 1 image is all you provide.
You can have as many or as few styles as you want. The caveat is the style names need to match the Interchange ones (Small, Medium, Large), and the custom ones you want to add have to be added as an extension via Javascript, like so (from the docs):
So, in your theme template.php, you could do something like:
If you use Interchange on lots of pages, it may be best suited in a preprocess_page hook. With that, you can define dozens of custom named queries, again, all the image cache style names need to match up to them so the module can sync them up when rendering.
Comment #2
kevinquillen commented