Linux 软件免费装
Banner图

Specify Image Dimensions

开发者 factmaven
ethanosullivan
nateallen
更新时间 2017年1月30日 11:11
PHP版本: 1.5.1 及以上
WordPress版本: 4.7.2
版权: GPLv3
版权网址: 版权信息

标签

performance image optimization yslow page speed pagespeed img width gtmetrix height dimensions specify image dimensions

下载

1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1.0

详情介绍:

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

安装:

  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.

屏幕截图:

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

升级注意事项:

1.0.4 Fixed issue with SVG and webP images set to "0" for width and height 1.0.2 Image thumbnails in Media gallery were not showing 1.0.1 Both width/height attributes weren't being inserted for some websites.

常见问题:

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.

更新日志:

1.1.0 2016-01-29 1.0.4 2016-11-28 1.0.3 1.0.2 1.0.1 1.0.0