Specify Image Dimensions

plugin banner

Automatically specify image dimensions that are missing width and/or height attributes. Helps with website speed tools.

Author:Fact Maven (profile at wordpress.org)
WordPress version required:1.5.1
WordPress version tested:4.7.17
Plugin version:1.1.0
Added to WordPress repository:23-08-2016
Last updated:30-01-2017
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:96
Rated by:6
Plugin URI:https://wordpress.org/plugins/specify-image-d...
Total downloads:8 286
Active installs:300+
plugin download
Click to start download

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
FAQ
ChangeLog