The task starts with the component model
Image variants are derived from components, rather than an arbitrary list of devices. A card, wide hero and image within reading text need different areas. We define which aspect ratios and maximum display widths actually occur and where cropping is acceptable in content terms.
This gives editors a clear framework for selecting assets. An image that works only in a very wide crop may not suit a narrow card. Examples and dialog guidance can communicate these limits, rather than compensating after upload with ever more special formats.
A focal area keeps the subject visible
The earlier dev5310 article described a Sizer module extending Magnolia image processing. Its principle: an original in the DAM and a defined focal area form the basis for suitable derivatives. The central image content should remain visible across different aspect ratios.
A focal point does not determine whether a crop works in content terms, however. People can be cut off, text within images become unreadable or relationships be lost. Previewing relevant uses therefore remains part of editorial review. For a specific installation, the current module version and actually available features need checking.
Test image delivery and design together
The frontend must offer the browser suitable variants for the intended display. An appropriate srcset describes available widths; sizes relates them to the actual layout area. This lets the browser account for factors such as its pixel density. An oversized sizes value can trigger unnecessarily large downloads even when smaller variants exist.
Format and quality are assessed together with the image. Dimension attributes reserve layout space; visible hero images need a different loading priority from images further down the text. Testing therefore includes actual requests in several views, covering file format, dimensions, sharpness and file size.
Alternative text remains a content task
Alternative text describes the image's meaning that matters in its particular context. A photograph may convey information on a company page but be purely decorative elsewhere. This use cannot be determined solely from a filename or a global DAM field.
Content images need an appropriate text alternative; purely decorative images are marked accordingly. An image credit is distinct and may appear in a visible caption. Focal points, compression and a small file format do not solve this content task.
Compatibility rather than an old installation guide
The original guide contained version-dependent Maven and YAML examples. For current use, Magnolia version, installed modules and imaging configuration are assessed together. A working asset link does not yet prove that the desired derivative is actually generated and delivered correctly.
Suitable evidence follows the path from original to public response: Is the variant available? Are format, dimensions and aspect ratio correct? Is the asset published and consistently reachable through preview, public and, where relevant, CDN? Only this test turns configuration into a dependable image process.
Sources and background
MDN: Responsive images
Fundamentals of image variants, srcset and sizes, and their connection to actual browser display.
W3C: Images Tutorial
The role of images and selecting suitable text alternatives for informative, functional and decorative uses.
Review the image process and components together.
We examine your images, page types and delivery from DAM to browser. This makes suitable variants and editorial rules testable against real uses.
