Image(s) are missing width and/or height attributes

Hi

Into my site https://www.agenziagammariccione.it, I have inserted all images with “Classical Image Element”.

For all of these images I receive a GTmetrix Performance Report, with the following warning message:

The following image(s) are missing width and/or height attributes

Please could you help me in order to resolve this warning?

Thank You

Daniele

Hello Daniele,

Thanks for writing in! Classic image element were meant to display full original images without any attributes. With classic image elements, you will only have limited controls over the element. We highly recommend that you switch to the v2 image element. You should be able to control the width and height and it will likely have the attributes of the image in the output or live view of the page compared to what you are having now.

Hope this helps. Kindly let us know how it goes.

Dear Reenel

Is there any way in order to switch automatically form Classic image element to v2 image element?
Otherwise it would be an endless job for me.

Thank You

Daniele

Hello Daniele,

Unfortunately, there is no automatic way of doing it. We have to manually replace the image element.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.