Specify Missing Image Dimensions

Descripción

Specify Missing Image Dimensions is a WordPress plugin that helps to add missing width and height attributes to images. This plugin scans the entire HTML page and specify missing width and height to tags.

If you are seeing error like «Image elements do not have explicit width and height» on Google PageSpeed Insights then this plugin will help you to remove that error by adding missing width and height attributes to the required images.

By adding width and height to the images, Cumulative Layout Shift (CLS) also improves as there will be no more unwanted jumps while HTML page rendering.

How this Plugin Works

  1. Specify Missing Image Dimensions plugin scans the entire HTML page and finds images with missing width and height attributes.
  2. After finding the images, this plugin gets the image dimensions using getimagesize() function.
  3. After getting the required dimensions, plugin adds the width and height attributes to the images.

Features

  • Exclude images by image extension
  • Exclude images by image Name
  • Exclude images by class
  • Exclude images by ID

Capturas

  • Access "Specify Missing Image Dimensions" Settings Page
  • "Specify Missing Image Dimensions" Settings Page

Instalación

Search for «Specify Missing Image Dimensions» under «Plugins» → «Add New» in your WordPress dashboard to install the plugin.

Or install it manually:

  1. Download the plugin’s zip file.
  2. Go to PluginsAdd New in your WordPress admin.
  3. Click on the Upload Plugin button.
  4. Select the file you downloaded.
  5. Click Install Plugin.
  6. Activate.

FAQ

Why this plugin is important?

Once this plugin assigns missing width and height attributes to required images, there will be no more unwanted jumps while page rendering. Adding missing width and height attributes also help to improve scores on website speed tools such as Google’s PageSpeed and GTmetrix

Does this plugin also works for SVG?

Yes, if the SVG are added using tag, then this plugin will work fine for them.
But if you see some issues with SVG or any other type of images, you can exclude SVG using plugin’s option.

Reseñas

13 de mayo de 2021
great did exactly what I wanted it and fixed some issues with cumulative layout shift
29 de abril de 2021
This plugin does exactly what the author says it will do. In fact, it does it so well, we would have been willing to pay for it. We also appreciate the patient and thorough support provided by the author when we reached out for clarification.
16 de abril de 2021
nel mio caso "Server Condiviso" consuma troppe risorse di sistema, peccato perché funziona bene
Leer todas las 4 reseñas

Colaboradores y desarrolladores

«Specify Missing Image Dimensions» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

Traduce «Specify Missing Image Dimensions» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

1.0.0

  • Initial release