Petro SEO Images to WebP

Petro SEO Images to WebP

Details
View on WordPress

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.

Details

Plugin code:
petro-seo-images-to-webp
Plugin version:
1.1.2
Outdated:
No
WP version:
5.8 or higher
PHP version:
7.1 or higher
Test up to WP version:
6.9.4
Total installations:
0
Last updated:
2026-05-16
Rating:
Times rated:
0
images
performance
picture
seo
webp