Title: Media File Sizes
Author: Jason LeMahieu (MadtownLems)
Published: <strong>2010 年 11 月 3 日</strong>
Last modified: 2021 年 3 月 24 日

---

搜索插件

![](https://ps.w.org/media-file-sizes/assets/banner-772x250.jpg?rev=739901)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/media-file-sizes_57a2cc.svg)

# Media File Sizes

 作者：[Jason LeMahieu (MadtownLems)](https://profiles.wordpress.org/madtownlems/)

[下载](https://downloads.wordpress.org/plugin/media-file-sizes.zip)

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

 [支持](https://wordpress.org/support/plugin/media-file-sizes/)

## 描述

This plugin adds a column to the Media Library page that displays the total space
used by each media item. For images, this includes the original image as well as
any other generated sizes.

This plugin is particularly handy for networks where site owners have a limited 
space quota.

Additionally, sorting your Media Library by file size is actually a great way to
identify duplicate media items.

## 屏幕截图

[⌊A sortable column is added to the Media Library which displays the total space
used by this media item (including generated sizes for image files). If a quota 
is in effect, a color-coded percentage is displayed, based on what percent of the
quota this media item is using.⌉⌊A sortable column is added to the Media Library
which displays the total space used by this media item (including generated sizes
for image files). If a quota is in effect, a color-coded percentage is displayed,
based on what percent of the quota this media item is using.⌉[

A sortable column is added to the Media Library which displays the total space used
by this media item (including generated sizes for image files). If a quota is in
effect, a color-coded percentage is displayed, based on what percent of the quota
this media item is using.

## 安装

Standard Installation Procedure

 1. Upload `media_file_sizes.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

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

### 󠀁[Lifesaver!](https://wordpress.org/support/topic/lifesaver-260/)󠁿

 [FannyV](https://profiles.wordpress.org/fannyv/) 2024 年 3 月 6 日

Just what I needed to show a client where and why those HUGE Media files are the
reason the hostingaccount needed an upgrade.

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

### 󠀁[Works, Reliable](https://wordpress.org/support/topic/works-reliable-2/)󠁿

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

Perfect function, thank you!

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

### 󠀁[PERFECT!!!!!! 5.8.2](https://wordpress.org/support/topic/perfect-5-8-2/)󠁿

 [JJNW](https://profiles.wordpress.org/jjnw/) 2021 年 12 月 2 日

Works with WP 5.8.2 – EXCELLENT thank you!!!!!!

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

### 󠀁[Still Works](https://wordpress.org/support/topic/still-works-139/)󠁿

 [Scott Hendison](https://profiles.wordpress.org/cyber49/) 2018 年 4 月 20 日

I REALLY needed this, to be able to identify the largest images, and I'm glad to
see it still works in April of 2018

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

### 󠀁[Simple and functional](https://wordpress.org/support/topic/simple-and-functional-50/)󠁿

 [Rogério Frigeri](https://profiles.wordpress.org/flipmind/) 2016 年 9 月 3 日

It does what it promises

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

### 󠀁[Works with 4.3.1](https://wordpress.org/support/topic/works-with-431/)󠁿

 [](https://profiles.wordpress.org/charleyramm/) 2016 年 9 月 3 日

I would prefer just one file size to be shown initially as two or three different
ones are perhaps just confusing for my client, and could equally be shown on hover
or something like that. Very useful and simple. does what it says on the tin.

 [ 阅读所有16条评价 ](https://wordpress.org/support/plugin/media-file-sizes/reviews/)

## 贡献者及开发者

「Media File Sizes」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Jason LeMahieu (MadtownLems) ](https://profiles.wordpress.org/madtownlems/)
 *   [ University of Wisconsin – Cooperative Extension ](https://profiles.wordpress.org/cets/)

[帮助将「Media File Sizes」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/media-file-sizes)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.8

 * Very minor update to check for variable existence which displayed notices with
   WP_Debug on

#### 1.7

 * Add support for properly sizing audio/video files in 3.6+

#### 1.6

 * Added MB display for files with size 1 MB or greater (Thanks for the idea, carry2web.)

#### 1.5

 * Resolved minor issue with refreshing cached metada on plugin upgrade

#### 1.2

 * Simplified code and did some performance tweaks. Now works on more hosting configurations(
   in theory)

#### 1.1.1

 * Translate column heading in Media Library

#### 1.1

 * Color coded percentage displays based on how much of quota the item takes up
 * Now caches mediafilesize as metadata
 * Allows column sorting in WordPress versions 3.1+

#### 1.0.2

 * Fixed a bug in single site installs (thanks for pointing thisout, fwchapman!)

#### 1.0.1

 * Added percent display when media item takes up over 1% of total space

#### 1.0

 * Initial Release

## 额外信息

 *  版本 **1.8**
 *  最后更新：**6 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 2.8.6 或更高版本 **
 *  已测试的最高版本为 **5.7.20**
 *  语言
 * [English (US)](https://wordpress.org/plugins/media-file-sizes/)
 * 标签
 * [files](https://cn.wordpress.org/plugins/tags/files/)[media](https://cn.wordpress.org/plugins/tags/media/)
   [quota](https://cn.wordpress.org/plugins/tags/quota/)
 *  [高级视图](https://cn.wordpress.org/plugins/media-file-sizes/advanced/)

## 评级

 4.1 星（最高 5 星）。

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

[您的评价](https://wordpress.org/support/plugin/media-file-sizes/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/media-file-sizes/reviews/)

## 贡献者

 *   [ Jason LeMahieu (MadtownLems) ](https://profiles.wordpress.org/madtownlems/)
 *   [ University of Wisconsin – Cooperative Extension ](https://profiles.wordpress.org/cets/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/media-file-sizes/)