Papepo Local WebP Converter

By PAPEPO

10+ active installationsVersion 1.2.2

Convert JPG/PNG uploads to WebP on your own server. No cloud API, no quotas. Optional HTML rewrite only when .webp exists.

Description

Papepo Local WebP Converter uses your server’s PHP image libraries (GD or Imagick) to create WebP versions of JPG/PNG uploads. Images do not leave your hosting account.

Features

  • Auto-convert on upload (optional)
  • Bulk library pass: main file + every intermediate size, with paged scanning
  • Quality control and keep-original backups (on by default)
  • Server capability check (GD/Imagick WebP probe)
  • Front-end URL rewrite when the WebP file exists: src, srcset, common data-* lazy attributes, inline style url(…), style tags, Customizer Additional CSS
  • Core attachment image URL / srcset filters when rewrite is enabled
  • Reminder to clear page cache after bulk conversion

This plugin is a performance helper. Privacy claims refer only to the fact that conversion is local — not a legal guarantee.

Installation

  1. Upload papepo-local-webp-converter to /wp-content/plugins/.
  2. Activate via the Plugins menu.
  3. Open Papepo Local WebP, confirm Server status is OK, then adjust quality.

FAQ

Do I need an API key?

No.

Will every JPG become WebP in HTML?

Only when a matching .webp file exists and “Rewrite front-end URLs” is enabled. Clear any page/CDN cache after bulk conversion so visitors see updated markup.

Does this use .htaccess or nginx rewrite rules?

No. Delivery is via PHP HTML rewriting (and WordPress attachment URL filters). It does not rely on Accept-header content negotiation, so it works the same on Apache, nginx, and LiteSpeed. Separate .css files linked as stylesheets are not rewritten — only CSS that appears in the HTML document (inline styles, style tags) and Customizer Additional CSS.

Why do I still see JPG after converting?

Common causes: full-page cache serving old HTML; background images or URLs inside external CSS files; or missing WebP files for a specific size. Check DevTools Network Type, confirm .webp files exist under uploads, and purge caches.

Screenshots

Changelog

1.2.2

  • Removed donation link.

1.2.1

  • Plugin Check: prefix uninstall helpers to satisfy naming conventions.

1.2.0

  • Rewrite data-* lazy attributes, inline style url(…), and style tags; stronger srcset handling.
  • Bulk converts every intermediate size and updates metadata safely.
  • Core wp_get_attachment_image_src / wp_calculate_image_srcset filters when rewrite is on.
  • Customizer Additional CSS url(…) rewrite; admin notice to clear page cache after bulk.
  • FAQ: no server rewrite; external stylesheet files not rewritten.

1.1.0

  • Server WebP capability check UI.
  • Rewrite URLs only if WebP file exists; optional toggle.
  • Keep-backup default ON; paged bulk scan.
  • Requires PHP 7.4; Tested up to 7.1; uninstall.php; i18n polish.

1.0.0

  • Initial release.