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〉的開發相關工作。

參與者

將〈Only WebP Uploads〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

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.