Title: Plus WebP or AVIF
Author: Katsushi Kawamori
Published: <strong>2019 年 5 月 14 日</strong>
Last modified: 2026 年 3 月 29 日

---

搜索插件

![](https://ps.w.org/plus-webp/assets/icon-256x256.png?rev=2087314)

# Plus WebP or AVIF

 作者：[Katsushi Kawamori](https://profiles.wordpress.org/katsushi-kawamori/)

[下载](https://downloads.wordpress.org/plugin/plus-webp.5.11.zip)

[实时预览](https://cn.wordpress.org/plugins/plus-webp/?preview=1)

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

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

## 描述

#### Generate WebP or AVIF

 * Generate WebP or AVIF file when adding image file in Media Library.
 * Generate WebP or AVIF from all the images by async/await.
 * Optionally, Can replace image files with WebP or AVIF when adding new media, 
   and delete the original image file. Also, when generating all images, the original
   image file ID will be overwritten as WebP or AVIF and the original image file
   will be deleted. All URLs in the content are also replaced.

#### WP-CLI

WP-CLI commands are available. If you have a large number of files, WP-CLI commands
is more reliable.
 * `wp pluswebpavif` * `wp pluswebpavif webp` -> Generated WebP.*`
wp pluswebpavif avif` -> Generated AVIF. * `wp pluswebpavif help` -> Specification
of this command. * `wp pluswebpavif webp mail` -> Send results via email. * `wp 
pluswebpavif webp replace` -> WebP or AVIF replacement of images and contents. *`
wp pluswebpavif avif addext` -> Append the webp or avif extension to the original
filename. * `wp pluswebpavif webp --pid=12152` -> Process only specified Media ID(
Conversion source ID). * `wp pluswebpavif avif --quality=90` -> Specifies the quality
of WebP or AVIF. * `wp pluswebpavif webp --types=image/png,image/gif` -> MIME type
to convert.

#### How it works

#### Filter hooks

    ```
    /** ==================================================
     * Filter for advanced change database.
     * If you want to replace other databases besides content.
     */
    add_filter(
        'plus_webp_advanced_change_db',
        function( $before_url, $after_url ) {
            /* Your processing */
            return array( $before_url, $after_url );
        },
        10,
        2
    );
    ```

## 屏幕截图

 * [[
 * 媒体库
 * [[
 * 生成
 * [[
 * 设置

## 安装

 1. 上传`plus-webp`目录至`/wp-content/plugins/` 目录
 2. 在WordPress的 ‘插件’菜单下找到并激活此插件。

## 常见问题

无

## 评价

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

### 󠀁[Excellent piece of work!](https://wordpress.org/support/topic/excellent-piece-of-work-3/)󠁿

 [yondermann](https://profiles.wordpress.org/yondermann/) 2025 年 4 月 8 日

It’s a refreshingly easy to handle plugin and it works perfectly well. It does what
it needs to!

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

### 󠀁[Хороший выбор](https://wordpress.org/support/topic/%d1%85%d0%be%d1%80%d0%be%d1%88%d0%b8%d0%b9-%d0%b2%d1%8b%d0%b1%d0%be%d1%80/)󠁿

 [Делай Сайт](https://profiles.wordpress.org/hanigin/) 2024 年 11 月 23 日

Отличный плагин. Делает свою работу на все 100%

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

### 󠀁[Renaming the email sender name](https://wordpress.org/support/topic/renaming-the-email-sender-name/)󠁿

 [robinnon](https://profiles.wordpress.org/robinnon/) 2024 年 7 月 19 日

After updating to version 4.09, I had to turn off the plugin, as it began to change
the sender name for all letters coming from my site to mail using the following 
template “[ Site name ] WebP generate for Plus WebP”. After deactivating the plugin,
the problem was resolved. Your plugin is very good! I gave it 2 stars just to get
your attention.

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

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

 [myeasymaster](https://profiles.wordpress.org/myeasymaster/) 2024 年 5 月 24 日

This is great plugin to save my server space! Dear developer, I prefer to donate
by paypal, usdt or stripe instead of inputting my credit card elsewhere.

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

### 󠀁[Works but can kill traffic](https://wordpress.org/support/topic/works-but-can-kill-traffic/)󠁿

 [spreaditunlimited](https://profiles.wordpress.org/spreaditunlimited/) 2024 年 
5 月 12 日

The plugin works, converts images to webp but also uses the apache PHP LoadFromFile
that loads the images from file rather make http request, which means it will change
the canonical of the images. Which means your articles and website will disappear
from Google search, which will kill the traffic and the website finally. This happened
to my website till I traced the solution down to this plugin. You’ll post and it
just won’t show on Google search even though all is green on GSC because of this
plugin. If you notice your website traffic is dying or your website doesn’t show
on Google, try removing this plugin and check your keywords acquisition on ahrefs.

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

### 󠀁[非常棒的插件](https://wordpress.org/support/topic/%e9%9d%9e%e5%b8%b8%e6%a3%92%e7%9a%84%e6%8f%92%e4%bb%b6-4/)󠁿

 [俊](https://profiles.wordpress.org/mmking/) 2023 年 11 月 30 日

非常棒的插件，而且免费。五星好评

 [ 阅读所有26条评价 ](https://wordpress.org/support/plugin/plus-webp/reviews/)

## 贡献者及开发者

「Plus WebP or AVIF」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Katsushi Kawamori ](https://profiles.wordpress.org/katsushi-kawamori/)

「Plus WebP or AVIF」插件已被翻译至 8 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/plus-webp/contributors)
为本插件所做的贡献。

[帮助将「Plus WebP or AVIF」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/plus-webp)

### 对开发感兴趣吗?

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

## 更新日志

#### [5.11] 2026/01/01

 * Fix – Issue where metadata containing the original filename remains after skipping
   duplicate filenames.

#### [5.10] 2025/06/19

 * Change – WP-CLI argument specification changes.

#### [5.04] 2025/04/02

 * Fix – Rebuilt javascript.

#### [5.03] 2024/11/14

 * Fix – Rebuilt javascript.

#### [5.02] 2024/11/14

 * Fix – Rebuilt javascript.

#### [5.01] 2024/11/12

 * Fix – Rebuilt javascript.
 * Change – Changed the required version of WordPress.

#### [5.00] 2024/08/23

 * Changed – Plugin name changed from “Plus WebP” to “Plus WebP or AVIF”.
 * Added – AVIF conversion.

#### [4.20] 2024/08/21

 * Added – WP-CLI command arguments for settings.
 * Changed – Classified WP-CLI commands.

#### [4.11] 2024/08/17

 * Fixed – Transparent PNG conversion issue.
 * Added – Added whether to send email to WP-CLI command arguments.
 * Added – Added the media ID to the WP-CLI command argument.

#### [4.10] 2024/07/19

 * Added – ‘plus_webp_advanced_change_db’ filter for Replacement of non-content 
   databases.
 * Removed – Blogname for mail from name.

#### [4.09] 2024/07/18

 * Added – WP-CLI command for warning indication at console output.
 * Tweak – Webp bulk generation by React.
 * Added – Blogname for mail from name.

#### [4.08] 2024/07/15

 * Fix – Support for cases where media exists in the database and does not exist
   as a file.
 * Thanks – [Marcus Karlos](https://profiles.wordpress.org/power2009/).

#### [4.07] 2024/06/20

 * Added – WP-CLI command for webp bulk generation.

#### [4.06] 2024/03/05

 * Fix – Changed file operations to WP_Filesystem.

#### 4.05

Changed json_encode to wp_json_encode.

#### 4.04

Supported WordPress 6.4.

#### 4.03

Fixed link to plugin page.

#### 4.02

Fixed about sending e-mail.

#### 4.01

Added description.
 Removed unnecessary codes.

#### 4.00

Moved the location of the Admin page to the Media Library.
 The admin screen has
been converted to React. Batch generation of webp by async/await is now supported.
Fixed a problem where title name comparison failed and generated duplicate files.
Metadata generation for WordPress 6.1-alpha to match WordPress 6.2.

#### 3.00

Supported WordPress 6.1-alpha.

#### 2.07

Added a hook for [Organize Media Folder](https://wordpress.org/plugins/organize-media-folder/).

#### 2.06

修复了媒体不存在时的处理问题。

#### 2.05

支持XAMPP。

#### 2.04

修复了元数据的问题。

#### 2.03

修复了元数据的问题。

#### 2.02

修复了内容替换的问题。

#### 2.01

Fixes various messages and branches in ajax.

#### 2.00

Added ajax generation for webp.

#### 1.13

Fixed an issue with saving options.
 Added options for extension.

#### 1.12

Fixed clear cron schedules issue.
 Fixed problem of threshold big image.

#### 1.11

Fixed the problem of title acquisition in bulk generation.

#### 1.10

Fixed background processing.

#### 1.09

Give details when email notification.
 Added the management screen notification 
of the end of batch generation.

#### 1.08

Added ability to choose which file types to convert and which not.

#### 1.07

Supported transparent gif & png.
 Fixed file name issue.

#### 1.06

Fixed content URL replacement issue.

#### 1.05

Fixed an image replacement issue.
 Conformed to the WordPress coding standard.

#### 1.04

Conformed to the WordPress coding standard.

#### 1.03

Added html escape on the management screen.

#### 1.02

Fixed an issue with image conversion.
 Fixed an image replacement issue. Added the
setting of quality.

#### 1.01

Fixed problem of PNG files.
 Added uninstall script.

#### 1.00

Initial release.

## 额外信息

 *  版本 **5.11**
 *  最后更新：**2 月前**
 *  活跃安装数量 **5,000+**
 *  WordPress 版本 ** 6.6 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 8.1 或更高版本 **
 *  语言
 * [Chinese (China)](https://cn.wordpress.org/plugins/plus-webp/) 、 [English (US)](https://wordpress.org/plugins/plus-webp/)、
   [French (France)](https://fr.wordpress.org/plugins/plus-webp/) 、 [Indonesian](https://id.wordpress.org/plugins/plus-webp/)、
   [Japanese](https://ja.wordpress.org/plugins/plus-webp/) 、 [Russian](https://ru.wordpress.org/plugins/plus-webp/)、
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/plus-webp/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/plus-webp/)
   和 [Spanish (Venezuela)](https://ve.wordpress.org/plugins/plus-webp/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/plus-webp)
 * 标签
 * [AVIF](https://cn.wordpress.org/plugins/tags/avif/)[media](https://cn.wordpress.org/plugins/tags/media/)
   [upload](https://cn.wordpress.org/plugins/tags/upload/)[webp](https://cn.wordpress.org/plugins/tags/webp/)
 *  [高级视图](https://cn.wordpress.org/plugins/plus-webp/advanced/)

## 评级

 4.6 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Katsushi Kawamori ](https://profiles.wordpress.org/katsushi-kawamori/)

## 支持

最近两个月解决的问题：

     总计 1，已解决 0

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://shop.riverforest-wp.info/donate/)