BACK TO DIRECTORY

Specify Missing Image Dimensions

by yasir129

4.5
(11 ratings)

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

Screenshots

Access "Specify Missing Image Dimensions" Settings Page

Access "Specify Missing Image Dimensions" Settings Page

"Specify Missing Image Dimensions"  Settings Page

"Specify Missing Image Dimensions" Settings Page

Plugin Details

Active Installs
1K+
Total Downloads
16,673
Version
1.0.2
Requires WP
5.0
Requires PHP
5.3
Tested Up To
6.0.14
Added
2021-03-18
Last Updated
2022-05-29 6:20pm GMT

Ratings

5
9
4
0
3
1
2
0
1
1