跳到内容

Specify Missing Image Dimensions

v1.0.2

yasir129 · 2021年3月18日 上架

This plugin helps to add missing width and height attributes to images.

正在使用
1,000+
评分
4.5 / 5
累计下载
1.7 万
最近更新
2022年5月30日
11 条评价需要 WordPress 5.0+已测试到 6.0.19PHP 5.3+

贡献者

截图

Access "Specify Missing Image Dimensions" Settings Page
Access "Specify Missing Image Dimensions" Settings Page
"Specify Missing Image Dimensions" Settings Page
"Specify Missing Image Dimensions" Settings Page

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

  1. Specify Missing Image Dimensions plugin scans the entire HTML page and finds images with missing width and height attributes.
  2. After finding the images, this plugin gets the image dimensions using getimagesize() function.
  3. 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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums