

WebP and AVIF optimization settings - choose output format, source formats, conversion quality, automatic optimization, and optional theme image processing.
PDEV Image Optimizer helps reduce image size and improve WordPress page load performance by converting JPEG, PNG, GIF, and WebP images locally to modern WebP or AVIF formats.
Optimize new uploads automatically or convert your existing Media Library in restartable batches. Smaller WebP and AVIF files can reduce image transfer size and improve page load performance, especially on image-heavy WordPress sites.
Images never leave your server. There are no image limits, no external optimization service, no account, no subscription, and no PRO version.
Original images remain untouched. WordPress continues using the existing image URLs while supported browsers receive optimized WebP or AVIF files automatically.
PDEV Image Optimizer was created as a lightweight alternative to image optimization plugins that depend on cloud dashboards, subscriptions, usage limits, or paid feature unlocks.
The goal is simple: generate modern image formats locally, reduce unnecessary image transfer, serve optimized images correctly, and provide enough diagnostics to understand when server configuration prevents optimization or delivery from working.
PDEV Image Optimizer creates WebP or AVIF copies of images from the WordPress Media Library.
It can:
wp pdevio.You only need to choose:
image.jpg.pio.webp).wp pdevio for optimization, targeted conversion, cleanup, status, the live delivery test, and format or speed changes..htaccess rewrite rules.photo.jpg and usually creates thumbnail files such as photo-768x512.jpg.photo.jpg.webp, photo.jpg.avif, or photo-768x512.jpg.webp..jpg, .png, .gif, or .webp.Accept header.This approach keeps existing WordPress URLs, post content, image references, and metadata unchanged.
On Apache and compatible LiteSpeed servers, PDEV Image Optimizer adds a clearly marked PDEV Image Optimizer block to .htaccess inside the uploads directory.
If theme image optimization is enabled, the plugin also manages a marked block inside the active theme directory.
The rules:
Vary: Accept so caches know that one URL can return different image formats.The uploads directory and its .htaccess file must be writable when the plugin needs to add or update these rules.
WordPress cannot safely edit Nginx server configuration.
PDEV Image Optimizer therefore generates ready-to-copy map and location blocks in System status.
A server administrator must:
map block to the appropriate http context.location block to the correct server context.Conversion and delivery are separate steps. Successfully generated WebP or AVIF files do not guarantee that visitors receive them if the required server rules are missing.
The Settings overview includes an optional live delivery test.
When an administrator clicks Test image delivery, PDEV Image Optimizer:
Accept header.Content-Type.A successful result confirms that the server is actually returning image/webp or image/avif.
The test runs only when an administrator starts it manually.
PDEV Image Optimizer needs both:
Installing the plugin cannot add missing PHP extensions or override restrictions imposed by your hosting provider.
Required for image conversion:
Required for automatic delivery on Apache or LiteSpeed:
mod_rewrite).mod_mime).mod_headers)..htaccess files must be allowed and processed for the uploads directory.AllowOverride setting..htaccess file must be writable by PHP when the plugin manages delivery rules.Required for delivery on Nginx:
map block to the http context.location block to the correct server context.If you use managed hosting and do not have access to these settings, ask your hosting provider:
.htaccess overrides are allowed.PDEV Image Optimizer cannot bypass server restrictions imposed by the hosting provider.
Image conversion can require considerably more memory than the compressed source file size suggests.
To reduce timeouts, HTTP 503 responses, PHP crashes, and shared-hosting resource-limit errors, PDEV Image Optimizer applies conservative limits before and during conversion.
Default limits for both Imagick and GD:
Additional GD protection:
Additional Imagick protection:
These values are safety ceilings, not resource reservations.
The server or hosting account may enforce lower limits. Increasing a PHP or plugin limit cannot bypass CPU, RAM, process, disk, or I/O restrictions imposed by the hosting provider.
Media Library optimization starts with one WordPress attachment per request and may use two only after several fast batches.
Slow or memory-heavy batches automatically return to one attachment.
Short pauses are added between requests. Temporary HTTP 409, 429, 502, 503, and 504 responses use an increasing retry delay.
Progress is saved after every attachment, so an interrupted optimization job can continue without rescanning the whole Media Library from the beginning.
One WordPress attachment can contain:
Processing one attachment can therefore still convert several physical image files.
Thumbnail regeneration always handles one attachment per request and pauses briefly before requesting the next one.
Thumbnail scanning is lighter and uses batches of up to five attachments.
If an image exceeds a safety limit, it is skipped and shown as a failed item with the reason in the conversion log and error list. Optimization continues with the next attachment.
The original image is never removed or modified.
Developers can adjust the safeguards with WordPress filters, but changes should reflect the actual limits of the hosting account.
PDEV Image Optimizer does not use an external service for image conversion.
Cloudflare integration is optional.
When configured, PDEV Image Optimizer sends the configured Zone ID and API token to Cloudflare to manage its own Cache Rule and purge the selected zone.
The compatibility test requests one public Media Library image using different Accept headers and stores only technical response information.
Images are not uploaded to Cloudflare by this plugin.
Cloudflare information: Terms and Privacy Policy.
Support is provided only through the official WordPress.org support forum for PDEV Image Optimizer:
PDEV Image Optimizer support forum
Support is not provided by email, through the author’s website, Ko-fi, social media, private messages, or any other channel.
Please use the WordPress.org forum so questions and solutions remain public and useful to other users.
Before opening a support topic:
The support report is designed to omit URLs, credentials, personal data, full server paths, and media content.