Images

Images play an essential role on the web and in any digital presence. Automad provides responsive images, image galleries, and slideshows as blocks that can be added to any block editor field. These blocks make it easy to display individual images with custom focal points and responsive aspect ratios, as well as manage and present image collections in versatile ways — from structured galleries to responsive slideshows.

Responsive Images

Automad lets you control how images are displayed across different device sizes by defining aspect ratio breakpoints and also lets you define what part of an image is relevant and should be focused when being cropped.

Video Aspect and Focus

Aspect Ratios

As demonstrated in the video above, you can define distinct aspect ratios for a max-width breakpoint in the format max-width:width/height. For example, 700:4/3 would show the image in 4/3 format when the containing element has a width less than 700px. Multiple breakpoints can be separated by whitespace.

Focal Point

When cropping images using aspect ratio breakpoints, the interesting part of an image might get cut off. Automad lets you set a focal point for an image. The area around that point will then always be visible by positioning the image accordingly.

The first image shows the focal point location marked by in the original image. The second image demonstrates how the image is cropped and positioned based on that focal point.

Galleries

Galleries let you showcase multiple images at once. Clicking an image opens it in a lightbox for easy viewing. Automad supports three layout options, all of which handle images of different dimensions gracefully. Spacing between images can be configured to achieve the desired layout. To add a gallery, click the little + icon in the block editor and search for Gallery block.

Masonry Columns

Images are arranged in a masonry-style column layout, automatically adjusting the number of columns based on available space. Ideal for collections with varying image sizes.

Horizontal Rows

Images are displayed in continuous horizontal rows, automatically adapting to images of different heights and widths. Works well for flowing presentations of diverse images.

Grid Layout

A clean, uniform grid where each image is centered within its cell. Works well for structured, evenly spaced presentations, even when images have different dimensions.

Slideshows

Slideshows display images in a rotating sequence, perfect for highlights or featured visuals. Spacing between items can be configured, and features such as the transition effect, autoplay, slide speed, and looping can also be customized. To add a slideshow, click the little + icon in the block editor and search for Slideshow block.

Responsive Slides

Slideshows are fully responsive, adjusting the number of visible items per slide depending on the container size. Images of varying dimensions are handled smoothly. Spacing between items can be configured to fit the layout.

Captions

Captions for an image can be defined in the Files tab of a page or in the Global Data and Files section. To edit a caption, open the file card menu using the dropdown in the lower-left corner and select Edit file info.

Captions support Markdown formatting and are displayed automatically in gallery lightboxes and slideshows.●

Components Pagelists & Tags