Learn how the Core Components uses the Adaptive Image Servlet for image delivery and how you can optimize its use.
The Image Core Component can use two methods to delivery images.
This document describes the default Adaptive Image Servlet.
By default, the Image Component uses the Core Component’s Adaptive Image Servlet to deliver images. The Adaptive Image Servlet is responsible for image processing and streaming and can be leveraged by developers in their customizations of the Core Components.
The Adaptive Image Servlet will automatically select the most appropriate rendition to display based on the size of the container in which it is displayed. The rendition selection process is as follows.
The Adaptive Image Servlet will try to pick the best rendition for the requested image size and type. It’s recommended that DAM renditions and Image component allowed widths are defined in sync so that the Adaptive Image Servlet does as little processing as possible.
This will improve performance and avoid some images not being correctly processed by the underlying image processing library.
Conditional requests via the Last-Modified header are supported by the Adaptive Image Servlet, but the caching of the Last-Modified header needs to be enabled in the Dispatcher.
The AEM Project Archetype’s sample Dispatcher configuration already contains this configuration.