plugin-icon

Petro SEO Images to WebP

Bulk-convert media library images to WebP for better SEO and Core Web Vitals. Originals stay on disk; the front-end serves WebP via the tag.
Version
1.1.2
Last updated
May 16, 2026
Petro SEO Images to WebP

Petro SEO Images to WebP converts your existing JPEG and PNG attachments to WebP in bulk, then serves them on the front-end through the standard <picture> element with a full responsive srcset. The original files stay untouched on disk, so reverting is as simple as flipping a switch.

Designed to be small, dependency-free and predictable. No external services, no images uploaded anywhere, no opaque queue.

What it does

  • Converts every registered image size (full + thumbnails) to .webp next to the original (e.g. photo.jpg photo.jpg.webp).
  • Wraps <img> tags from wp_get_attachment_image() and the_content in <picture><source type="image/webp">…</picture>, preserving full srcset and sizes.
  • Skips images automatically if a previous run failed because of filesystem permissions, so you can retry on demand without reprocessing the whole library.
  • Ramps the WebP quality down (75 60 45 40) when the encoded file ends up larger than the original, so you never ship a “WebP” that is heavier than the JPEG.
  • Idempotent: re-running the bulk job only touches new or updated images.

What it does NOT do

  • It does not delete or modify your original JPG/PNG files.
  • It does not require Imagick or a specific image library beyond what WordPress already uses (wp_get_image_editor()).
  • It does not phone home, register endpoints, or load remote scripts.

Privacy

The plugin processes images locally using WordPress’s built-in image editor. No data is sent to third-party services.

Freeon paid plans
Tested up to
WordPress 6.9.4
This plugin is available for download for your site.