內容簡介
Media Webp 是一款 WordPress 外掛,旨在協助您完全自動化管理網站上的 WebP 圖像。
當相容圖像上傳到網站的媒體庫中,相應的 WebP 圖像將被生成。這樣一來,您就可以享受 WebP 圖像的優勢,而不需要自己維護相應的圖像。
此外,該外掛還會在管理介面中更改關聯附件圖像時更新任何現有的 WebP 圖像。
外掛還包括選項,使您能夠啟用並使用您的佈景主題時生成相應的 WebP 圖像。
該外掛內置了從上傳媒體和當前主題文件夾中現有圖像生成 WebP 文件的工具。
為了讓您的服務器發送 WebP 圖像,您需要在.htaccess 文件的頂部包含一小段代碼。這將使您的服務器檢查要求的瀏覽器是否接受 WebP 圖像以及是否有相應的 WebP 圖像。有關詳細說明,請參閱設置頁面。
此外,此外掛不會執行以下操作:
更改任何沒有 WebP 擴展名的現有圖像。
刪除任何沒有 WebP 擴展名的圖像。
更改任何 .htaccess 文件。
外掛標籤
開發者團隊
原文外掛簡介
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.
