這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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.
  • 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.
  • 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.

使用者評論

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 🙂
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!
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.
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.
2018 年 12 月 9 日
This plugin resolves the conversion to webp very easily. It only needs a couple of errors to solve. Congratulations!!
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Media Webp〉的開發相關工作。

參與者

〈Media Webp〉外掛目前已有 5 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Media Webp〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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.