Specify Missing Image Dimensions
Specify Missing Image Dimensions
Description
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
- Specify Missing Image Dimensions plugin scans the entire HTML page and finds images with missing width and height attributes.
- After finding the images, this plugin gets the image dimensions using getimagesize() function.
- 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
Installation
Search for “Specify Missing Image Dimensions” under “Plugins” “Add New” in your WordPress dashboard to install the plugin.
Or install it manually:
- Download the plugin’s zip file.
- Go to Plugins Add New in your WordPress admin.
- Click on the Upload Plugin button.
- Select the file you downloaded.
- Click Install Plugin.
- Activate.
Screenshots
Faq
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
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.
Reviews
This plugin is great
By nouha88 on January 5, 2023
It doesn't need much configuration, yet it works like magic.
Thank you for this plugin. The CLS of the website is much better now.
Image Elements do Not Have Explicit Width and Height [RESOLVED]
By highdeckstudio on July 20, 2022
Great!
By Hony Tsoi (honytsoi) on January 18, 2022
Great plugin, work well
By cropsong on October 10, 2021
Garbage - makes site extremely slow and WordPress admin unusable
By jasonbear on August 3, 2021
✅ Core Web Vitals - Simple Easy Fix 🙂
By sunnyjimm on July 5, 2021
Super - Works with Elementor
By Rudiculous on June 23, 2021
great little app
By tyealia on May 13, 2021
A Good Quick Fix
By thecozyapron on April 29, 2021
buono ma...
By pagrob on April 16, 2021
Changelog
1.0.2
- Handled running of plugin’s functionality at backend (wp-admin)
1.0.1
- Handled Error causing by SVG images
1.0.0
- Initial release

