Title: Image Sizes in Admin Dashboard
Author: mansoormunib
Published: <strong>2013 年 11 月 7 日</strong>
Last modified: 2026 年 6 月 9 日

---

搜索插件

![](https://ps.w.org/image-sizes-in-admin-dashboard/assets/banner-772x250.png?rev
=801284)

![](https://s.w.org/plugins/geopattern-icon/image-sizes-in-admin-dashboard_f8f8f8.
svg)

# Image Sizes in Admin Dashboard

 作者：[mansoormunib](https://profiles.wordpress.org/mansoormunib/)

[下载](https://downloads.wordpress.org/plugin/image-sizes-in-admin-dashboard.2.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/image-sizes-in-admin-dashboard/#description)
 * [评价](https://cn.wordpress.org/plugins/image-sizes-in-admin-dashboard/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/image-sizes-in-admin-dashboard/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/image-sizes-in-admin-dashboard/#developers)

 [支持](https://wordpress.org/support/plugin/image-sizes-in-admin-dashboard/)

## 描述

Image Sizes in Admin Dashboard adds a read-only widget to the WordPress admin Dashboard
that lists all currently registered image sizes.

Any size you register in your theme or plugin with `add_image_size()` is picked 
up automatically, alongside the built-in `thumbnail`, `medium`, `medium_large` and`
large` sizes. Each row shows:

 * The image size name (human readable)
 * Width in pixels (— when unconstrained)
 * Height in pixels (— when unconstrained)
 * Crop mode (Cropped or Proportional)

This is handy when building a theme and you need a quick reference of the exact 
dimensions available to `the_post_thumbnail()` and the media library.

More detail on registering custom image sizes: https://developer.wordpress.org/reference/
functions/add_image_size/

## 屏幕截图

[⌊The Image Sizes widget on the admin Dashboard.⌉⌊The Image Sizes widget on the 
admin Dashboard.⌉[

The Image Sizes widget on the admin Dashboard.

## 安装

 1. Upload the `image-sizes-in-admin-dashboard` folder to your `/wp-content/plugins/`
    directory.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Open **Dashboard** in wp-admin — the **Image Sizes** widget appears for administrators.

## 常见问题

### Who can see the widget?

Only users with the `manage_options` capability (administrators by default).

### My custom size is not listed

Make sure `add_image_size()` runs on the `after_setup_theme` or `init` hook in your
theme or plugin so the size is registered before the Dashboard loads.

### Does this work on Multisite?

The widget renders on each site’s Dashboard. To show it on the Network Admin Dashboard,
hook the registration to `wp_network_dashboard_setup` instead of `wp_dashboard_setup`.

## 评价

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

### 󠀁[….](https://wordpress.org/support/topic/7804374/)󠁿

 [mansoormunib](https://profiles.wordpress.org/mansoormunib/) 2017 年 2 月 7 日

….

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

### 󠀁[….](https://wordpress.org/support/topic/7804373/)󠁿

 [dinwebb](https://profiles.wordpress.org/dinwebb/) 2017 年 2 月 7 日

….

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/image-sizes-in-admin-dashboard/reviews/)

## 贡献者及开发者

「Image Sizes in Admin Dashboard」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Image Sizes in Admin Dashboard」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/image-sizes-in-admin-dashboard)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/image-sizes-in-admin-dashboard/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/image-sizes-in-admin-dashboard/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/image-sizes-in-admin-dashboard/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/image-sizes-in-admin-dashboard/)。

## 更新日志

#### 2.0.0

 * Rewrite for WordPress 6.5+ / PHP 8.0+.
 * Namespaced, object-oriented architecture (no more global functions).
 * Output fully escaped (esc_html / esc_html__).
 * Capability check (`manage_options`) before registering and rendering the widget.
 * Sizes now read via `wp_get_registered_image_subsizes()` instead of the private`
   $_wp_additional_image_sizes` global.
 * All strings internationalized under the `image-sizes-admin-dashboard` text domain.
 * Adds a Crop column and a clean responsive table layout.
 * Fixes undefined variable warnings on PHP 8.x.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **2.0.0**
 *  最后更新：**4 月前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 6.5 或更高版本 **
 *  已测试的最高版本为 **7.0.7**
 *  PHP 版本 ** 8.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/image-sizes-in-admin-dashboard/)
 * 标签
 * [add_image_size](https://cn.wordpress.org/plugins/tags/add_image_size/)[dashboard](https://cn.wordpress.org/plugins/tags/dashboard/)
   [image sizes](https://cn.wordpress.org/plugins/tags/image-sizes/)[media](https://cn.wordpress.org/plugins/tags/media/)
   [thumbnails](https://cn.wordpress.org/plugins/tags/thumbnails/)
 *  [高级视图](https://cn.wordpress.org/plugins/image-sizes-in-admin-dashboard/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/image-sizes-in-admin-dashboard/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/image-sizes-in-admin-dashboard/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/image-sizes-in-admin-dashboard/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/image-sizes-in-admin-dashboard/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/image-sizes-in-admin-dashboard/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/image-sizes-in-admin-dashboard/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/image-sizes-in-admin-dashboard/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/image-sizes-in-admin-dashboard/)