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
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.zipDescription
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
- Upload the plugin files to the
/wp-content/plugins/spx-webp-converterdirectory, or install the plugin through the WordPress plugins screen directly. - 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
strpospath traversal check withstr_starts_with()(PHP 8.0+), validaterealpath()results explicitly - feat: add
Requires at least,Requires PHP,Tested up toto plugin header - feat: add
SPX_WEBP_CONVERTER_VERSIONconstant - feat: add
show_in_restto allregister_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.