Title: WP WebPNative
Author: alexalouit
Published: <strong>2020 年 3 月 28 日</strong>
Last modified: 2020 年 3 月 28 日

---

搜尋外掛

![](https://ps.w.org/wp-webpnative/assets/banner-772x250.png?rev=2269889)

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

![](https://ps.w.org/wp-webpnative/assets/icon-256x256.jpg?rev=2269889)

# WP WebPNative

 由 [alexalouit](https://profiles.wordpress.org/alexalouit/) 開發

[下載](https://downloads.wordpress.org/plugin/wp-webpnative.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wp-webpnative/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wp-webpnative/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wp-webpnative/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wp-webpnative/#developers)

 [技術支援](https://wordpress.org/support/plugin/wp-webpnative/)

## 外掛說明

This module provide a reliable webp solution, without configuration.
 Supported 
file formats are JPEG and PNG up to 8 megabytes.

Module look for compatible media images, sends them to an API which is convert them.

They are saved next to the original file. When a visitor is on your site, “HTML 
Transformation” function take care to provide the WebP version. This function can
be disabled because some web server takes care of presenting the file themselves.

## 螢幕擷圖

 * [[
 * Exemple
 * [[
 * General configure

## 安裝方式

The installation is like any other plugin:

Automatic installation:
 Install it from WordPress plugins repository, activate 
it.

Manual installation:
 Unzip files under /wp-content/plugins directory, activate 
it.

Automatic uninstallation:
 Use WordPress built-in extension manager.

Manual uninstallation:
 – remove plugin directory /wp-content/plugins/wp-webpnative

## 常見問題集

  Does it support non-WebP browser like Safari?

Yes, this is supported when using the html transformation function.

  Does I need a PHP specific module?

No, you don’t.
 The compression is done on several remote servers.

  What is HTML modification?

This is the process of modifying the final HTML content of your page,
 it will verify
that the images are available in WebP format so that the client is WebP compatible.
If these last two cases are valid, the content will be update to present the image
in WebP format.

  How use Apache rule

Disable HTML transformation on module configuration page

_add to .htaccess:_

    ```
    <IfModule mod_setenvif.c>
      SetEnvIf Request_URI "\.(jpe?g|png)$" REQUEST_image
    </IfModule>

    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond %{HTTP_ACCEPT} image/webp
      RewriteCond %{DOCUMENT_ROOT}/$1.webp -f
      RewriteRule (.+)\.(jpe?g|png)$ $1.webp [T=image/webp]
    </IfModule>

    <IfModule mod_headers.c>
      Header append Vary Accept env=REQUEST_image
    </IfModule>

    <IfModule mod_mime.c>
      AddType image/webp .webp
    </IfModule>
    ```

  How use Nginx rule

Disable HTML transformation on module configuration page

_Add to /etc/nginx/conf.d/webp.conf:_

    ```
    map $http_accept $webp_suffix {
      default "";
      "~*webp" ".webp";
    }
    ```

_Add to your vhost file:_

    ```
    location ~ \.(png|jpe?g)$ {
      add_header Vary "Accept-Encoding";
      try_files $uri$webp_suffix $uri =404;
    }
    ```

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

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

參與者

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

[將〈WP WebPNative〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp-webpnative)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wp-webpnative/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/wp-webpnative/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/wp-webpnative/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wp-webpnative/)。

## 變更記錄

#### 1.0

 * Initial version

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **6 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.3.21**
 *  PHP 版本需求 ** 5.2.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-webpnative/)
 * 標籤:
 * [image](https://tw.wordpress.org/plugins/tags/image/)[performance](https://tw.wordpress.org/plugins/tags/performance/)
   [speed](https://tw.wordpress.org/plugins/tags/speed/)[webp](https://tw.wordpress.org/plugins/tags/webp/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-webpnative/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/wp-webpnative/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp-webpnative/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=4GJGDY4J4PRXS)