Title: Only WebP Uploads
Author: rbonfil
Published: <strong>2026 年 1 月 9 日</strong>
Last modified: 2026 年 1 月 10 日

---

搜索插件

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

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

# Only WebP Uploads

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

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

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

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

## 描述

Only WebP Uploads automatically converts your image uploads (JPG, PNG, GIF) to WebP
format. It handles all image sizes generated by WordPress, ensuring your site serves
optimized, modern image formats.

Features:
 * **Automatic Conversion:** Converts images immediately upon upload. ***
Space Saving:** Replaces original files with lighter WebP versions. * **Database
Integration:** Updates WordPress metadata so the Media Library recognizes the file
as WebP. * **Bulk Conversion:** Includes a tool to scan and convert existing images
in your library. * **WP-CLI Support:** Manage conversions via command line using`
wp onlywebp`. * **Smart Filename Sanitization:** Automatically cleans filenames (
e.g., `mañana.jpg` -> `manana.webp`). For non-Latin names (e.g., Japanese), it generates
a secure unique ID to ensure compatibility. * **Security:** Checks for Imagick support
and sanitizes filenames.

## 屏幕截图

 * [[
 * General Settings / Plugin Configuration.
 * [[
 * Bulk Optimization Tool / Media Library view.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/only-webp-uploads` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Use the Settings->Only WebP Uploads screen to configure your preferences.

## 常见问题

### Does this modify my original images?

Yes, this plugin is designed to **replace** your original uploads with WebP versions
to save storage space.

### Requirements?

You need the PHP `Imagick` extension installed and enabled on your server, with 
WebP support.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「Only WebP Uploads」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/only-webp-uploads)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.1

 * New: Added “Strict Filename Sanitization” toggle.
 * New: Rewritten UI with toggle switches and quality slider.
 * Fix: Prevent file overwrite when uploading files with the same name.

#### 1.0.0

 * Initial launch on WordPress.org

#### 0.4.1

 * Fix: Resolved issues reported by WordPress Plugin Review Team.
 * Fix: Properly enqueued admin scripts and styles.
 * Fix: Scoped sanitization filter to upload process only.
 * Fix: Corrected Text Domain to match plugin slug.

#### 0.4

 * Production release

= 0.3.9 (RC)=
 * Fix: Translation corrections. * New: Added “Credits tab”.

= 0.3.8 (BETA)=
 * Security: Improved output escaping in admin dashboard. * Compliance:
Standardized readme.txt and headers.

#### 0.3.7 (BETA)

 * Refactor: Renamed internal references from `wua` to `onlywebp`.
 * Fix: Resolved text domain mismatch issues.
 * Security: Added warnings for bulk content replacement.

#### 0.3.6 (BETA)

 * Fix: Resolved duplicated image issues.

#### 0.3.5 (BETA)

 * Initial release.

#### 0.2.0 (ALFA)

 * Base structure.

= 0.1.0 (PRE-ALFA)=
 * Idea and concept.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**5 月前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/only-webp-uploads/)
 * 标签
 * [conversion](https://cn.wordpress.org/plugins/tags/conversion/)[images](https://cn.wordpress.org/plugins/tags/images/)
   [optimization](https://cn.wordpress.org/plugins/tags/optimization/)[upload](https://cn.wordpress.org/plugins/tags/upload/)
   [webp](https://cn.wordpress.org/plugins/tags/webp/)
 *  [高级视图](https://cn.wordpress.org/plugins/only-webp-uploads/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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