Plan image sizes
Images are generated in the sizes the design shows, not scaled in the browser.
Life cycle: Plan, example 21 of 35. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- The gallery blocks (Gallery, Slider, Thumb gallery, Grid gallery, Sushi bar, Logos) have Thumbnail size alias (default
small).
With templates
- Templates choose the alias with
{attribute_view_gui attribute=$node.data_map.image image_class=i480}; the media theme uses aliases such asi480(its image files end in_i480.jpg). - New aliases are defined in
image.iniof your extension.
Which to choose
Reuse the theme's aliases; add one only for a new size.
Check
- The image files in the page are of the planned size.
Related pages
- How a block maps to its templates
- Plan examples, every page
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.