Title: Disable WebP By Default
Author: David Baumwald
Published: <strong>2022 年 3 月 31 日</strong>
Last modified: 2025 年 2 月 6 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/disable-webp-by-default.svg)

# Disable WebP By Default

 作者：[David Baumwald](https://profiles.wordpress.org/davidbaumwald/)

[下载](https://downloads.wordpress.org/plugin/disable-webp-by-default.zip)

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

 [支持](https://wordpress.org/support/plugin/disable-webp-by-default/)

## 描述

*** 2022-09-12 UPDATE ***
 @matt published a post and codified a final decision 
that [WebP by default would not be coming to WordPress Core in version 6.1](https://make.wordpress.org/core/2022/09/11/webp-in-core-for-6-1/).
That being the case, this plugin will not be necessary for users to prevent WebP
generation by default as part of the Core upload process.

Proposed to be included in WordPress 6.0 is a new feature to generate and use webp
images by default. Specifically, when an image is uploaded, a WebP version of every
image subsize is created. According to [the proposal](https://make.wordpress.org/core/2022/03/28/enabling-webp-by-default/),
one downside is that generating WebP versions along with the original JPEGs will“
use an additional ~70% of the storage space to store both file types.” Although 
this is hugely beneficial to most websites and, more importantly, their visitors,
some site owners may not be immediately able to increase the size of their storage
to accommodate the additional files. For more information, see the proposal or [the Trac ticket](https://core.trac.wordpress.org/ticket/55443).

To help site owners manage the transition, this plugin adds a setting under Settings-
> Media to either enable or disable WebP creation on the initial upload of JPEGs.
For Multisite installations, the plugin can be activated network-wide or on individual
sites.

*** 2022-07-22 UPDATE ***
 Although the original implementation was not merged in
6.0 due to community feedback, changeset 53751(https://core.trac.wordpress.org/changeset/
53751) merged an updated implementation that addresses some(but not all) concerns
from the community. This merge will be part of the 6.1 release, unless further changes
are needed. Some site owners may not be able to immediately cope with doubling their
required storage allotment with their host, so the original goal of this plugin 
remains. The code has been updated to disable WebP creation on upload globally. 
There is a new ticket discussing the possibility of making this feature into a setting(
see https://core.trac.wordpress.org/ticket/56263). However, given WordPress’s core
philosphy of “Decisions, Not Options”, it’s unlikely to proceed.

## 安装

 1. Upload the `disable-webp-by-default` folder to the plugins directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Control WebP generation with the new checkbox under Settings -> Media.

## 评价

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

### 󠀁[Thank you](https://wordpress.org/support/topic/thank-you-3204/)󠁿

 [Jeff Starr](https://profiles.wordpress.org/specialk/) 2022 年 9 月 25 日

Thank you for your work with this plugin (and just keeping track and reporting all
the latest WEBP changes, etc.). Great to find so much useful information in the 
plugin documentation. Very much appreciated!

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

### 󠀁[ปลักอินนี้ดี](https://wordpress.org/support/topic/%e0%b8%9b%e0%b8%a5%e0%b8%b1%e0%b8%81%e0%b8%ad%e0%b8%b4%e0%b8%99%e0%b8%99%e0%b8%b5%e0%b9%89%e0%b8%94%e0%b8%b5/)󠁿

 [eighteen](https://profiles.wordpress.org/18pee/) 2022 年 8 月 26 日

ขอบคุณที่มีปลักอิ้นนี้ครับ

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

### 󠀁[Hats Off to Developer!](https://wordpress.org/support/topic/hats-off-to-developer/)󠁿

 [Jimmy Lee](https://profiles.wordpress.org/shirtguy72/) 2022 年 8 月 20 日

Thanks so much, like for so many, we are serving WEBP “On The Fly” via a CDN and
have ZERO need for such Core functionality. How hard would it be for WP to give 
users a checkbox to disable this mess? Again, THANKS!

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

### 󠀁[Should be a setting in core, disabled by default](https://wordpress.org/support/topic/should-be-a-setting-in-core-disabled-by-default/)󠁿

 [Jeff Daigle](https://profiles.wordpress.org/jeff-daigle/) 2022 年 8 月 4 日

This should be a setting in core, disabled by default.

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

### 󠀁[Thank you!](https://wordpress.org/support/topic/thank-you-3172/)󠁿

 [Andrew Wilder](https://profiles.wordpress.org/eatingrules/) 2022 年 7 月 29 日

Thank you for creating this plugin! It’s a shame it’s necessary, but I appreciate
that you created it to make it easier for site owners to be able to take back control
over their sites without needing to know how to add a filter.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/disable-webp-by-default/reviews/)

## 贡献者及开发者

「Disable WebP By Default」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ David Baumwald ](https://profiles.wordpress.org/davidbaumwald/)

「Disable WebP By Default」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/disable-webp-by-default/contributors)
为本插件所做的贡献。

[帮助将「Disable WebP By Default」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/disable-webp-by-default)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.7.0

 * Cleanup namespaces and scopes.

#### 0.6.0

 * Code consolidation and cleanup.

#### 0.5.0

 * Add new setting to control the WebP generation.

#### 0.4.0

 * Remove “Network” flag in plugin header to allow for individual site usage in 
   multisite.
 * Add mime check for JPEG before altering the outputs.

#### 0.3.0

 * Update code to only remove the JPEG -> WebP transform, leaving the other default
   JPEG -> JPEG transforms in place. (Props @adamsilverstein)

#### 0.2.0

 * r53751 compatibility update.

#### 0.1.0

 * Initial release.

## 额外信息

 *  版本 **0.7.0**
 *  最后更新：**1 年前**
 *  活跃安装数量 **200+**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/disable-webp-by-default/) 和 [Russian](https://ru.wordpress.org/plugins/disable-webp-by-default/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/disable-webp-by-default)
 * 标签
 * [image](https://cn.wordpress.org/plugins/tags/image/)[jpeg](https://cn.wordpress.org/plugins/tags/jpeg/)
   [media](https://cn.wordpress.org/plugins/tags/media/)[webp](https://cn.wordpress.org/plugins/tags/webp/)
 *  [高级视图](https://cn.wordpress.org/plugins/disable-webp-by-default/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/disable-webp-by-default/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/disable-webp-by-default/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/disable-webp-by-default/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/disable-webp-by-default/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/disable-webp-by-default/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/disable-webp-by-default/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/disable-webp-by-default/reviews/)

## 贡献者

 *   [ David Baumwald ](https://profiles.wordpress.org/davidbaumwald/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/disable-webp-by-default/)