Title: Specify Missing Image Dimensions
Author: yasir129
Published: <strong>2021 年 3 月 18 日</strong>
Last modified: 2022 年 5 月 29 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/specify-missing-image-dimensions.svg)

# Specify Missing Image Dimensions

 由 [yasir129](https://profiles.wordpress.org/yasir129/) 開發

[下載](https://downloads.wordpress.org/plugin/specify-missing-image-dimensions.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/specify-missing-image-dimensions/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/specify-missing-image-dimensions/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/specify-missing-image-dimensions/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/specify-missing-image-dimensions/#developers)

 [技術支援](https://wordpress.org/support/plugin/specify-missing-image-dimensions/)

## 外掛說明

**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](https://developers.google.com/speed/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

## 螢幕擷圖

 * [[
 * Access “Specify Missing Image Dimensions” Settings Page
 * [[
 * “Specify Missing Image Dimensions” Settings Page

## 安裝方式

Search for “Specify Missing Image Dimensions” under “Plugins”  “Add New” in your
WordPress dashboard to install the plugin.

Or install it manually:

 1. Download the plugin’s [zip file](https://wordpress.org/plugins/specify-missing-image-dimensions/).
 2. Go to _Plugins_  _Add New_ in your WordPress admin.
 3. Click on the _Upload Plugin_ button.
 4. Select the file you downloaded.
 5. Click _Install Plugin_.
 6. Activate.

## 常見問題集

### Why this plugin is important?

Once this plugin assigns missing width and height attributes to required images,
there will be no more unwanted jumps while page rendering. Adding missing width 
and height attributes also help to improve scores on website speed tools such as
[Google’s PageSpeed](https://developers.google.com/speed/pagespeed/insights/) and
[GTmetrix](https://gtmetrix.com)

### Does this plugin also works for SVG?

Yes, if the SVG are added using tag, then this plugin will work fine for them.
 
But if you see some issues with SVG or any other type of images, you can exclude
SVG using plugin’s option.

## 使用者評論

![](https://secure.gravatar.com/avatar/3b5ce53801a10d1e95f58e94dcb773796c837283431c20e0668962e2214a5bd2?
s=60&d=retro&r=g)

### 󠀁[This plugin is great](https://wordpress.org/support/topic/this-plugin-is-great-70/)󠁿

 [nouha88](https://profiles.wordpress.org/nouha88/) 2023 年 1 月 5 日

It doesn’t need much configuration, yet it works like magic. Thank you for this 
plugin. The CLS of the website is much better now.

![](https://secure.gravatar.com/avatar/961ef82863052736a95c9f8a288d3a6507c65be61335d659d73ec83d6a1ab29f?
s=60&d=retro&r=g)

### 󠀁[Image Elements do Not Have Explicit Width and Height [RESOLVED]](https://wordpress.org/support/topic/image-elements-do-not-have-explicit-width-and-height-resolved/)󠁿

 [highdeckstudio](https://profiles.wordpress.org/highdeckstudio/) 2022 年 7 月 20
日

Excellent! Ideal plugin for users of page builders like Elementor. Thank you so 
much!💚

![](https://secure.gravatar.com/avatar/045cd335193f0c9c3f11637f3b0c279db77265ede7cac474a92f5d10c3d93f3c?
s=60&d=retro&r=g)

### 󠀁[Great!](https://wordpress.org/support/topic/great-14161/)󠁿

 [Hony Tsoi](https://profiles.wordpress.org/honytsoi/) 2022 年 1 月 18 日

Improved by CLS from 0.26 to 0.0004 with no effort! Using with Divi theme which 
is very heavy, so any improvement is good.

![](https://secure.gravatar.com/avatar/702016e7c55e65542ce4655ddd58b25218685d8ed4ca2185a2e8fb295dd24454?
s=60&d=retro&r=g)

### 󠀁[Great plugin, work well](https://wordpress.org/support/topic/great-plugin-work-well-2/)󠁿

 [cropsong](https://profiles.wordpress.org/cropsong/) 2021 年 10 月 10 日

After install this plugin, my website speed was improved a lot, thank you! Just 
please keep this plugin updated as quick as you can.

![](https://secure.gravatar.com/avatar/3397165e70e93cf935eae7f8f3df8f071b98268c4033f45bf45f0047feb032c8?
s=60&d=retro&r=g)

### 󠀁[Garbage – makes site extremely slow and WordPress admin unusable](https://wordpress.org/support/topic/garbage-makes-site-extremely-slow-and-wordpress-admin-unusable/)󠁿

 [jasonbear](https://profiles.wordpress.org/jasonbear/) 2021 年 8 月 3 日

Junk. Fix your product! I wasted 2 days trying to figure out why my entire site 
was absurdly slow and why my Wordpress admin kept getting “504 Gateway Timeout” 
errors that made it entirely unusable! I installed this thing to speed up my site,
and you made it 100 times slower . . . and unusable! Great job! I couldn’t even 
load the plugins page to deactivate plugins one-by-one to identify the culprit. 
I had to rename each plugin folder via FTP in order to disable each plugin. As soon
as I disable “Specify Missing Image Dimensions,” the problem goes away! REMOVE THIS
HARMFUL PLUGIN!

![](https://secure.gravatar.com/avatar/b4737b75264d64d6e31d125139a23aa2cb1ae1fbb37832e68d307c5bfa75b337?
s=60&d=retro&r=g)

### 󠀁[✅ Core Web Vitals – Simple Easy Fix 🙂](https://wordpress.org/support/topic/%e2%9c%85-core-web-vitals-simple-easy-fix/)󠁿

 [sunnyjimm](https://profiles.wordpress.org/sunnyjimm/) 2021 年 7 月 5 日

Thank you for your useful and easy to use plugin. Solved the Core Web Vitals issue
like magic – just install and BOOM! Job done. High5!

 [ 閱讀全部 10 則使用者評論 ](https://wordpress.org/support/plugin/specify-missing-image-dimensions/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Specify Missing Image Dimensions〉的開發相關工作。

參與者

 *   [ yasir129 ](https://profiles.wordpress.org/yasir129/)

[將〈Specify Missing Image Dimensions〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/specify-missing-image-dimensions)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/specify-missing-image-dimensions/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/specify-missing-image-dimensions/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/specify-missing-image-dimensions/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/specify-missing-image-dimensions/)。

## 變更記錄

#### 1.0.2

 * Handled running of plugin’s functionality at backend (wp-admin)

#### 1.0.1

 * Handled Error causing by SVG images

#### 1.0.0

 * Initial release

## 中繼資料

 *  版本 **1.0.2**
 *  最後更新 **4 年前**
 *  啟用安裝數 **1,000+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.0.12**
 *  PHP 版本需求 ** 5.3 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/specify-missing-image-dimensions/)
 * 標籤:
 * [image optimization](https://tw.wordpress.org/plugins/tags/image-optimization/)
   [images](https://tw.wordpress.org/plugins/tags/images/)[Optimize](https://tw.wordpress.org/plugins/tags/optimize/)
   [pagespeed](https://tw.wordpress.org/plugins/tags/pagespeed/)[speed](https://tw.wordpress.org/plugins/tags/speed/)
 *  [進階檢視](https://tw.wordpress.org/plugins/specify-missing-image-dimensions/advanced/)

## 評分

 4.5 星，滿分為 5 星

 *  [  9 個 5 星使用者評論     ](https://wordpress.org/support/plugin/specify-missing-image-dimensions/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/specify-missing-image-dimensions/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/specify-missing-image-dimensions/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/specify-missing-image-dimensions/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/specify-missing-image-dimensions/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/specify-missing-image-dimensions/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/specify-missing-image-dimensions/reviews/)

## 參與者

 *   [ yasir129 ](https://profiles.wordpress.org/yasir129/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/specify-missing-image-dimensions/)