Request for Feature Enhancement (RFE) Summary: |
Image component loads rendition based on screen size, not target image size.
|
Use-case: |
Google Lighthouse score complains that images are too large. Images should be sized depending on their target size.
Our portrait thumbnails are loaded mostly at 1600 px width (based on screen size), although thumbnails only need to be around 500 px width across most screen sizes. Introducing the HTML "sizes" attribute did not solve the issue.
The only thing that helped so far is to upload small-scale images for thumbnails. But we don't like that approach. Editors should not be required to think about images resoluition. They should just upload their high-res images and AEM Assets does the magic.
|
Current/Experienced Behavior: |
Thumbnail-sized images are loaded at 1600 px and scaled down by the browser to fit into the target space leading to unsharp images or image artifacts. See attachments.
|
Improved/Expected Behavior: |
The Image component loads a rendition that fits best for the target height and width. |
Environment Details (AEM version/service pack, any other specifics if applicable): |
AEM as a Cloud Service |
Customer-name/Organization name: |
VERLAG DES OSTERREICHISCHEN GEWERKSCHAFTSBUNDES GMBH |
Screenshot (if applicable): |
See attachment. |
Code package (if applicable): |
|