Hi,
Yes, setting explicit width and height values for SVG images is a recommended practice to avoid layout shifts and improve performance. The issue you mentioned is related to the AEM Core WCM Components and it seems that the component is not setting the width and height attributes for SVG images.
One workaround for this issue is to create a custom image component that sets the width and height attributes for SVG images. Here are the steps you can follow:
- Create a new image component by copying the v3 Image component from the core components folder to your project folder.
- Rename the component to something unique to avoid conflicts with the core component.
- Open the jsp file of the new component and modify the image tag to add the width and height attributes if the image is an SVG.