WP Manifestindependent plugin directory
manifest / performance / wp-auto-webp-converter-plugin

WP Auto WebP Converter

WordPress plugin: auto-convert post images to WebP on save. Drop-in, idempotent, preserves originals as fallback.

by burakgon · github.com/burakgon/wp-auto-webp-converter-plugin · website

2stars
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/burakgon/wp-auto-webp-converter-plugin/archive/refs/heads/main.zip

From the readme

WP Auto WebP Converter A WordPress plugin that turns the images in your posts into WebP automatically the moment you hit Save. No setup. No background queue to babysit. No client-side JavaScript. Just install, activate, and every post you save afterwards ships with .webp images in the HTML — while the originals stay on disk untouched as a fallback. Why Most WebP plugins fall into one of two camps: heavyweight "image optimization suites" that ask for an API key and a credit card, or .htaccess rewrites that quietly serve .webp to browsers behind the scenes. Both have their place. This one solves a smaller, sharper problem: When I publish a post, I want the rendered HTML to literally contain , not …/photo.jpg. That way every downstream consumer — Cloudflare, your CDN, AMP, RSS aggregators, Open Graph crawlers, RSS-to-newsletter pipelines — gets the WebP URL directly, no Accept header negotiation, no element gymnastics. What it does On every savepostpost (manual draft save, publish, scheduled, REST API, classic editor, block editor — anything that fires the hook), the plugin will: 1. Read the saved post content and find every -style URL pointing to a JPG / PNG / GIF inside /

Read the full README on GitHub →