WP Manifestindependent plugin directory
manifest / performance / spx-webp-converter

SPX - Webp Converter

A wordpress Plugin that automatically converts JPEG/PNG uploads to WebP and allows WebP uploads in the media library.

by René Otto · github.com/reneottowebdesign/spx-webp-converter

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/reneottowebdesign/spx-webp-converter/archive/refs/heads/main.zip

Description

This plugin automatically converts uploaded JPEG and PNG images to WebP format and allows WebP uploads in the WordPress media library. It helps optimize your website images for better performance and smaller file sizes.

Installation

  1. Upload the plugin files to the /wp-content/plugins/spx-webp-converter directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.

Frequently Asked Questions

What does this plugin do? It converts JPEG and PNG uploads to WebP and allows WebP uploads in the media library.

Does it delete the original image? Yes, after successful conversion, the original JPEG/PNG file is removed.

What are the requirements? Your server must support the GD library with WebP support. Requires PHP 8.0+ and WordPress 6.0+.

Changelog

1.1.4 – 2026-05-28

  • fix: check imagerotate() return value before reassigning image resource
  • fix: remove @ error suppression (getimagesize, exif_read_data, imagepalettetotruecolor, unlink)
  • fix: replace strpos path traversal check with str_starts_with() (PHP 8.0+), validate realpath() results explicitly
  • feat: add Requires at least, Requires PHP, Tested up to to plugin header
  • feat: add SPX_WEBP_CONVERTER_VERSION constant
  • feat: add show_in_rest to all register_setting() calls (REST API / Block Editor)

1.1.3 – 2025-08-19

  • style: code style / formatting (PSR/WP standards) in helpers, admin, converter

1.1.2 – 2025-08-19

  • refactor: split code into modular includes (helpers/admin/converter)

1.1.1 – 2025-08-19

  • fix: proportional single-pass resize & apply settings properly
  • refactor: internal conversion flow for clarity

1.1.0 – 2025-08-19

  • feat: add admin settings for quality and max dimensions (f23c9ae)

1.0.0 – 2025-08-19

  • Converts uploads to WebP and allows WebP uploads (4dabede)
  • docs(changelog): add commit history entries (c4617cd)
  • docs: convert readme to Markdown and remove legacy readme.txt (1ab7438)
  • Initializes WebP conversion plugin (2bdf55d)
  • Initial commit (d91eb93)

Upgrade Notice

1.1.4

Requires PHP 8.0+ and WordPress 6.0+. Improved code robustness and WordPress 7 compatibility.

1.0.0

First release.