=== Specify Image Dimensions === Contributors: factmaven, ethanosullivan, nateallen Tags: image, img, dimensions, width, height, specify image dimensions Requires at least: 4.5 Tested up to: 4.6 Stable tag: 1.0.0 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html Automatically specify image dimensions that are missing width and/or height attributes. Helps with website speed tools. == Description == A simple and lightweight plugin that scans your website and automatically sets the appropriate image dimensions that are missing a `width` and/or `height` attributes in your `` tags. For example, here are some images with no dimensions set: ` Some Alt Another Alt ` The plugin will get the actual image dimension and insert the width and height: ` Some Alt Another Alt ` = 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 details from Google** > > When the browser lays out the page, it needs to be able to flow around replaceable elements such as images. It can begin to render a page even before images are downloaded, provided that it knows the dimensions to wrap non-replaceable elements around. If no dimensions are specified in the containing document, or if the dimensions specified don't match those of the actual images, the browser will require a reflow and repaint once the images are downloaded. To prevent reflows, specify the width and height of all images, either in the HTML tag, or in CSS. > > **Reference**: [GTmetrix](https://gtmetrix.com/specify-image-dimensions.html) = Contribute on GitHub = [View this plugin on GitHub](https://github.com/factmaven/specify-image-dimensions) We're always looking for suggestions to improve our plugin! == Installation == 1. Upload the plugin to the `/wp-content/plugins/` directory. 1. Activate the plugin through the `Plugins` menu in WordPress. 1. Let it settle in a for a minute and be amazed. == Frequently Asked Questions == = How does it work? = The plugin will scan the contents in your posts and [*automagically*](http://www.dictionary.com/browse/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](https://developers.google.com/speed/pagespeed/module/filter-image-optimize#resize-image-dimensions). = 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](https://github.com/factmaven/specify-image-dimensions). == Screenshots == 1. Example result from GTmetrix which affects page score == Changelog == = 1.0.0 08/21/16 = * Initial release, huzzah!