Issue
- I noticed that Adaptive Media is not applied in fragments with an image.
- Add an image to the Documents and Media Library with a width above 600px
- Go to Control Panel→Configuration→Adaptive Media
- Add a new resolution with the properties width: 600px, height: automatic
- Adapt the new resolution to the existing images
- Go to Site→Content & Data→Web Content and add a new Basic Web Content
- Add the image uploaded in step 1 to the content and publish it
- Add a Web Content Display Portlet to a page and configure the added Web Content
- Open Device Simulation in the Browser and simulate a mobile device (in my case I used Chrome and simulated an iPhone X)
- Inspect the image in the Web Content Display Portlet with the Browser dev tools (best in network tab)
Result: The image is served from "/o/adaptive-media/...", in my case:/o/adaptive-media/image/49546/preview-600x0/Policy.png?t=1585211947689
→the lower resolution image is used
- Add a Content Page and configure a fragment with an image (e.g. image or card)
- Configure the same image as in the Web Content
- Publish the Content Page
- Open Device Simulation in the Browser and simulate a mobile device (again, Chrome and simulated an iPhone X)
- Inspect the image in the fragment with the Browser dev tools (best in network tab)
Result: The image is served from "/documents/...", in my case/documents/20124/0/Policy.png/8e3dbd7a-feb4-d5cd-e34a-2ee6c6ad124a?version=1.0&t=1585211947689&download=true
→the original image is used
Environment
- DXP 7.2
- DXP 7.3
Resolution
- This is a missing feature that has been included in DXP 7.4 GA1+
- See feature request for this: LPS-97919