Title: WebP WASM
Author: gecko43
Published: <strong>19 ມິຖຸນາ 2020</strong>
Last modified: 19 ມິຖຸນາ 2020

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/webp-wasm/assets/banner-772x250.png?rev=2327719)

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

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

# WebP WASM

 ໂດຍ [gecko43](https://profiles.wordpress.org/gecko43/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/webp-wasm.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/webp-wasm/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/webp-wasm/#reviews)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/webp-wasm/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/webp-wasm/)

## ຄຳອະທິບາຍ

Convert jpeg and png images to their webp equivalents by leveraging google’s libwebp
and web assembly and serve webp images directly when supported in posts and pages.

### Quick start

 * Sign into the backoffice as an admin user.
 * Install the plugin and activate it.

### Convert a single media library image

 * Navigate to **Media > Library**
 * Select the **list view** icon
 * Locate a jpeg or png image for editing and click the media’s title link or the“
   edit” link under the entry.
 * Scroll down to the bottom of the edit page to the (new) _WebP Conversion_ section
 * Click **Create** to create a webp version of this media library image on the 
   server
 * Click **Delete** to delete a webp version if it exists for this media library
   image

### Convert all media library images

 * Navigate to **Plugins**
 * Set the quality and overwrite flag as desired
 * Click **Create** to create webp files for all media library images
 * Click **Delete** to delete existing webp files for all media library images

### How it works

The client (browser) creates a webp version of the image when the **Create** button
is clicked. This is then sent to the server where it is saved in the same folder
as the original image, but with a `.webp` extension.

For example, if the original image is

    ```
    /wp-content/uploads/2020/05/test.jpg
    ```

an additional

    ```
    /wp-content/uploads/2020/05/test.webp
    ```

will be created there.

A filter is applied in the WordPress hook `the_content` to swap an image for its
webp equivalent if available.

### More about the conversion

Conversion is done on the client, so a modern browser with wasm support is needed.
This is because conversion to webp with php requires shell_exec to make calls to
Google’s cwebp or other php extensions are needed. These features often pose security
risks that outweigh the benefits. This plugin gets around that by delegating the
actual image conversion to the client. It’s based on [this encoder](https://github.com/wrburnham/webp-wasm)
to save webp versions of uploaded jpeg and png images.

### License

This plugin is licensed as GPLv3.

### Notes

The simple html dom parser library is used to render webp images directly in WordPress
content where possible. The client-side conversion to WebP leverages Google’s libwebp.

## ພາບໜ້າຈໍ

 * [[
 * Access the admin panel from the **Tools** menu.
 * [[
 * The admin panel for global (site-wide) conversion of images to WebP. A similar
   panel is available for individual media library images; to access this for an
   individual media resource, use the **Edit** link for the specific **Media** >**
   Library** resource.

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“WebP WASM” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການພັດ
ທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

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

[ແປ “WebP WASM” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/webp-wasm)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/webp-wasm/), ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/webp-wasm/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/webp-wasm/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/webp-wasm/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

First release

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.0**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **6 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **10+**
 *  ທົດສອບເຖິງເວີຊັນ **5.4.19**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/webp-wasm/)
 * ແທັກ
 * [image](https://lo.wordpress.org/plugins/tags/image/)[webp](https://lo.wordpress.org/plugins/tags/webp/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/webp-wasm/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

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

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/webp-wasm/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

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

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/webp-wasm/)