Title: Media Webp
Author: steveturner2018
Published: <strong>2018 年 10 月 25 日</strong>
Last modified: 2018 年 10 月 30 日

---

搜索插件

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

![](https://ps.w.org/media-webp/assets/icon.svg?rev=1965789)

# Media Webp

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

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

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

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

## 描述

Media Webp has been designed to help you fully automate the management of webp images
on your WordPress website.
 When a compatible image is uploaded to your sites media
library corresponding webp images will be generated. Giving you the advantages of
webp images without having to maintain matching images yourself. This plugin also
updates any existing webp images if the associated attachment image is altered through
the admin interface. Included is the option to allow this plugin to generate webp
images for your theme when it is made active or switched too. The plugin has built
in tools to generate webp files from existing images both within your upload media
and the active theme folders. Too enable your server to send webp images you will
need to include a small block of code at the top of your .htaccess file. This will
allow your server to check if the requesting browser accepts webp images and if 
there is a corresponding webp image. Full instructions are available on the settings
page.

What this plugin does NOT do.

Alter any existing images that do not have the webp extension.
 Delete any images
that do not have the webp extension. Alter any .htaccess file(s) for you.

## 屏幕截图

[⌊Once the plugin is activated you can see if webp images are being sent using Google
Chrome.⌉⌊Once the plugin is activated you can see if webp images are being sent 
using Google Chrome.⌉[

Once the plugin is activated you can see if webp images are being sent using Google
Chrome.

[⌊Any attachments that have corresponding webp images will have this logo in the
top left corner in both grid and list views.  You can turn this off.⌉⌊Any attachments
that have corresponding webp images will have this logo in the top left corner in
both grid and list views.  You can turn this off.⌉[

Any attachments that have corresponding webp images will have this logo in the top
left corner in both grid and list views. You can turn this off.

[⌊If a image does not have webp images but it is possible to, you will see this 
button when viewing the image.⌉⌊If a image does not have webp images but it is possible
to, you will see this button when viewing the image.⌉[

If a image does not have webp images but it is possible to, you will see this button
when viewing the image.

[⌊On the tools page you can generate images from existing media for both your upload
and theme folders.⌉⌊On the tools page you can generate images from existing media
for both your upload and theme folders.⌉[

On the tools page you can generate images from existing media for both your upload
and theme folders.

## 安装

 1. Upload the contents of the zip file to the “/wp-content/plugins/mediawebp” directory.
 2. Activate the plugin through the “Plugins” menu in WordPress. You will require the
    GD php module to have been enabled or you will recieve a warning.
 3. Add the included code to your .htaccess file. This can be found on the settings
    page, by clicking on the blue circle with a white i in the centre.
 4. Then generate webp images for any exiting media including any compatible active
    theme images from within the plugins tool page. This can be done before or after
    updating your .htaccess file.

## 常见问题

  How do I know if it is working

You can check if its working by using Google Chrome to view one of your sites pages
that contain webp images. You can open the \’web developers\’ options to check the
received media type next to the image. It will still have the original file extension
on the filename so you will need to clear any caching on your browser.

  Will this affect WordPress caching

No, all of the work is done by your server so any caching / optimization plugin 
will not be affected.

  Will it work with CDN’s and or static content providers

You will have to configure your CDN to serve the webp image type, if the webp images
are saved directly to your CDN folder will depend on how it is being maintained 
in WordPress. You may be able to just include the .htaccess snippet to make it work.
I will update this question as soon as I know more.

## 评价

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

### 󠀁[Good one, but not supported anymore](https://wordpress.org/support/topic/good-one-but-not-supported-anymore/)󠁿

 [Grzegorz.Janoszka](https://profiles.wordpress.org/grzegorzjanoszka/) 2020 年 10
月 1 日

It was such a good plugin, but unfortunately the author doesn’t support it anymore.
I am migrating to avif from webp, so I am stopping using this plugin but I have 
all good memories from it 🙂

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

### 󠀁[The best webp aplication](https://wordpress.org/support/topic/the-best-webp-aplication/)󠁿

 [b8engl](https://profiles.wordpress.org/b8engl/) 2019 年 12 月 15 日 1 回复

It works great! No flaws, simple, very explanatory and with all the options for 
server side. Really amazing what you did! Thank you very much!

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

### 󠀁[Perfect working!](https://wordpress.org/support/topic/perfect-working-6/)󠁿

 [Mirco Baumann](https://profiles.wordpress.org/clanfamily/) 2019 年 4 月 16 日

Thank you! What a perfect plugin. I am using it on my 5.1.1 installation. The automatic
workflow for existing images was done great. My samplepage with about 3.6MB of pictures
shrinked down to only 690kb with same satisfied image quality for me but a better
google pagespeed ranking. A MUST HAVE for eachone! Go an install it.

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

### 󠀁[Worked like charm!!!](https://wordpress.org/support/topic/worked-like-charm-8/)󠁿

 [devworker](https://profiles.wordpress.org/devworker/) 2019 年 2 月 17 日

Worked as explained without any hassle.

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

### 󠀁[Best Webp Plugin ever](https://wordpress.org/support/topic/best-webp-plugin-ever/)󠁿

 [awillbraender](https://profiles.wordpress.org/awillbraender/) 2019 年 2 月 6 日

Funktioniert schnell und problemlos im Gegensatz zu den anderen WEBP Plugins, die
ich getestet habe. Kein Login, kein zusätzlicher Account notwendig. WEBPs werden
on the fly beim upload generiert und alles funktioniert wunderbar. 1000 Dank, das
ist eines der nützlichsten Plugins überhaupt, um seine Performance zu verbessern.

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

### 󠀁[Fantastic](https://wordpress.org/support/topic/fantastic-1992/)󠁿

 [tseo.pro](https://profiles.wordpress.org/ibermega/) 2018 年 12 月 9 日

This plugin resolves the conversion to webp very easily. It only needs a couple 
of errors to solve. Congratulations!!

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

## 贡献者及开发者

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

贡献者

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

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Media Webp, first release.

#### 1.0.1

 * bugfix: minor fixes for strict mode.

#### 1.0.2

 * improvement: GD library missing notice added.

#### 1.0.3

 * bugfix (js): new post, add media, media library, icon / button duplicates fix.

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**8 年前**
 *  活跃安装数量 **80+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  PHP 版本 ** 7.1.0 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/media-webp/) 、 [English (US)](https://wordpress.org/plugins/media-webp/)、
   [French (France)](https://fr.wordpress.org/plugins/media-webp/) 、 [German](https://de.wordpress.org/plugins/media-webp/)、
   [Italian](https://it.wordpress.org/plugins/media-webp/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/media-webp/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/media-webp/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/media-webp)
 * 标签
 * [images](https://cn.wordpress.org/plugins/tags/images/)[media](https://cn.wordpress.org/plugins/tags/media/)
   [optimise](https://cn.wordpress.org/plugins/tags/optimise/)[optimization](https://cn.wordpress.org/plugins/tags/optimization/)
   [webp](https://cn.wordpress.org/plugins/tags/webp/)
 *  [高级视图](https://cn.wordpress.org/plugins/media-webp/advanced/)

## 评级

 4.9 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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