This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Specify Image Dimensions

Description

Specify Image Dimensions is a plugin that scans and inserts missing width and height in all <img> tags. Specifying the dimension allows for faster rendering by eliminating the need for unnecessary re-flows and repaints. This is particularly helpful with website speed tools such as GTmetrix and Google’s PageSpeed.

Before

<img src="http://example.com/image.jpg" title="Some Title" />
<img src="http://example.com/vector.svg" class="svg" />
<img src="http://example.com/another-vector.webp" />

After

<img src="http://example.com/image.jpg" title"Some Title" width="100" height="25" />
<img src="http://example.com/vector.svg" class="svg" width="100%" height="auto" />
<img src="http://example.com/another-vector.webp" width="100%" height="auto" />

Contribute on GitHub

Want to help improve this plugin? Head over to our GitHub page

Screenshots

  • Before and after result using the Specify Image Dimensions plugin from GTmetrix report.

Installation

  1. Upload the plugin to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Let it settle in a for a minute and be amazed.

If there are any issues or questions, head over to our FAQ or our Support page.

FAQ

How does it work?

The plugin will scan the contents in your posts and automagically specify the image dimensions by adding the correct width and height.

Why is this important?

Specifying a width and height for all images allows for faster rendering by eliminating the need for unnecessary re-flows and repaints. This is particularly helpful with website speed tools such as GTmetrix and Google’s PageSpeed. More information can be found here.

I’d like to contribute to this plugin and help improve it

That’s easy! If you have a GitHub account, you’re more than welcome to share your contribution to our plugin which can be found here.

Reviews

21 พฤศจิกายน 2019
I tested it today, on wordpress 5.3, though it has not been updated in the past and have not been tested in the past three Major releases. But it worked smoothly and did what it claims. I found your suggestions in one of the questions at Stackexchange @ this URL https://wordpress.stackexchange.com/questions/168503/specify-image-dimensions Hesitently tried your plugin and WOW from 87 my score was full 100. Thanks Bro please keep doing the good work and thanks for this Plugin. Hope this new review from India help people reach this plugin and get helped if they face the observation of "Specify Image Dimensions". Well I am an old young man started learning creation of website on WordPress. My site address is https://www.veteranjawan.online I am veteran of Indian Air Force. Any valuable suggestions or sharing of technical knowledge will be a great help to me Thanks again Nalin Talwar nalintalwar08 (at) gmail (dot) com
1 พฤศจิกายน 2017
I installed this plugin to improve SEO. I needed to make some CSS adjustment on my website and it's all working fine. Amazing plugin! Thx a lot
3 กันยายน 2016
Great support this wasn't working at first for me and they were able to help me get it working, the problem was actually another plugin i had installed. Support responds quickly and is very helpful. This plugin is wonderful and does exactly what it says it does. I was looking for a long time for a plugin like this one glad they made it awesome work guys.
3 กันยายน 2016
I am using a lot of images on my website, always in tests I can look the problem with missing images size. But not a problem now!! Thanks
Read all 6 reviews

Contributors & Developers

“Specify Image Dimensions” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.0

2016-01-29
* Fix: images with blank dimensions weren’t being detected
* Added support for additional img attributes

=1.0.4 =
2016-11-28
* Fix: SVG and webP images were given 0 width and height
* Various code improvements

1.0.3

  • 2016-09-01
  • Fix: Thumbnail weren’t showing up in Pages
  • Renamed plugin file from index.php to specify-image-dimensions.php

1.0.2

  • 2016-08-25
  • Fix: Thumbnails weren’t showing in the Media library (thanks ramonjosegn)

1.0.1

  • 2016-08-24
  • Fix: Image dimensions were not being set

1.0.0

  • 2016-08-21
  • Initial release, huzzah!