PDEV Image Optimizer – WebP & AVIF
Speed up WordPress image delivery with local WebP and AVIF optimization. Free, private, unlimited, with no subscription or PRO version.
Solid choice
PDEV Image Optimizer is a solid plugin choice in 2026, with a few things worth checking first. It runs on 100+ sites, is rated 5/5 and was last updated 2 weeks ago, and scores 75/100 on our health check.
- Actively developed — last update 2 weeks ago
- Tested with the latest WordPress (7.1)
- Momentum — downloads up 45.5% vs the previous 30 days
- Small user base (100+ active installs)
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where PDEV Image Optimizer stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| AVIF | #30 |
| image compression | #49 |
| image optimization | #97 |
| image optimizer | #28 |
| webp | #48 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 1 reviews
About PDEV Image Optimizer – WebP & AVIF
From the official readme · v1.4.3Description
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.
During repeated metadata updates in one upload request, unchanged images whose converted result was not smaller are not encoded again. This reuse is request-local and checks source content and conversion settings; failed attempts remain retryable. Upload conversion still runs synchronously.
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.
Why PDEV Image Optimizer?
- WebP and AVIF support using Imagick or GD.
- Faster image delivery through smaller modern image formats.
- 100% local image optimization – images are not uploaded to an external service.
- Unlimited images – no monthly quota or conversion credits.
- No account or API key required for image conversion.
- No subscription or paid plan.
- No PRO version or feature paywall.
- Original images are never replaced or deleted during optimization.
- Automatic optimization of new uploads and WordPress thumbnails.
- Bulk optimization for an existing Media Library with restartable progress.
- Apache, LiteSpeed, and Nginx support.
- Optional Cloudflare integration.
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.
What does the plugin do?
PDEV Image Optimizer creates WebP or AVIF copies of images from the WordPress Media Library.
It can:
- Automatically optimize newly uploaded images.
- Convert an existing Media Library in small, restartable batches.
- Process WordPress thumbnail sizes.
- Optionally optimize supported images from the active theme.
- Scan for missing or obsolete thumbnails.
- Regenerate missing or all registered thumbnail sizes.
- Preview and clean obsolete PDEV-generated optimized files.
- Show storage savings and estimated transfer savings.
- Detect conflicting image plugins and rewrite rules.
- Test whether optimized images are actually delivered to visitors.
- Generate ready-to-copy Nginx configuration.
- Integrate optionally with Cloudflare.
- Provide a privacy-safe system report for troubleshooting.
- Run bulk optimization, cleanup, the delivery test, and settings changes from WP-CLI with
wp pdevio.
You only need to choose:
- WebP or AVIF as the output format.
- Which source formats should be converted: JPEG, PNG, GIF, or WebP where applicable.
- Conversion quality.
- Whether new uploads should be optimized automatically.
- Whether supported images from the active theme should also be processed.
Main features
- Local WebP and AVIF image conversion with Imagick or GD.
- Automatic optimization of new WordPress uploads and generated thumbnails.
- Restartable bulk optimization of the existing Media Library.
- Optional optimization of supported images from the active theme.
- Thumbnail scan, missing-thumbnail repair, full regeneration, and obsolete-file cleanup.
- Cleanup that previews count and size before deleting only files whose name and location mark them as PDEV-generated (
image.jpg.pio.webp). - Cleanup modes for obsolete generated files or all PDEV-generated optimized files.
- Adjustable optimization speed, from a conservative shared-hosting profile to a fast profile for a VPS or dedicated server.
- Per-image safety limits that skip unsafe files without stopping the complete optimization job.
- WP-CLI command
wp pdeviofor optimization, targeted conversion, cleanup, status, the live delivery test, and format or speed changes. - Storage usage and estimated transfer savings statistics.
- Apache and LiteSpeed delivery through managed
.htaccessrewrite rules. - Generated Nginx configuration for servers where WordPress cannot modify the web-server configuration directly.
- General image-plugin and rewrite-rule conflict detection.
- Optional Cloudflare Free-compatible cache integration.
- Live HTTP delivery test for WebP and AVIF responses.
- Detailed privacy-safe system report with copy and JSON export.
- Tested encoder support, server requirements, delivery status, and conflict checks, summarised on the main screen and detailed under System status.
- Actionable recovery instructions when a configuration check fails.
- Error history from the last 24 hours, limited to 50 entries.
- No external conversion service, telemetry, tracking, subscription, paywall, or PRO version.
How does image optimization work?
- WordPress stores an image such as
photo.jpgand usually creates thumbnail files such asphoto-768x512.jpg. - PDEV Image Optimizer uses Imagick, or GD as a fallback, to create an optimized file next to each source file.
- The optimized file is stored as a separate WebP or AVIF sidecar, for example
photo.jpg.webp,photo.jpg.avif, orphoto-768x512.jpg.webp. - The original image is not deleted, renamed, or replaced.
- WordPress content continues using the existing URL ending in
.jpg,.png,.gif, or.webp. - When a browser requests the original URL, the web server checks the browser’s
Acceptheader. - If the browser supports the selected modern format and the optimized sidecar exists, the server returns WebP or AVIF instead.
- Browsers without support receive the untouched original image.
This approach keeps existing WordPress URLs, post content, image references, and metadata unchanged.
Image delivery on Apache and LiteSpeed
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:
- Detect WebP or AVIF browser support.
- Serve the optimized sidecar when available.
- Set the correct MIME type.
- Add
Vary: Acceptso 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.
Image delivery on Nginx
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:
- Add the generated
mapblock to the appropriatehttpcontext. - Add the generated
locationblock to the correctservercontext. - Test the Nginx configuration.
- Reload Nginx.
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.
Live image delivery test
The Settings overview includes an optional live delivery test.
When an administrator clicks Test image delivery, PDEV Image Optimizer:
- Creates a temporary one-pixel source image and optimized sidecar inside uploads.
- Requests the original source URL with the appropriate
Acceptheader. - Checks the returned HTTP status and
Content-Type. - Immediately removes both temporary test files.
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.
Server requirements
PDEV Image Optimizer needs both:
- A working PHP image conversion library.
- Correct web-server configuration for automatic delivery.
Installing the plugin cannot add missing PHP extensions or override restrictions imposed by your hosting provider.
Required for image conversion:
- WordPress 6.4 or newer.
- PHP 8.0 or newer.
- Imagick or GD installed and enabled in PHP.
- The selected image library must support the selected output format.
- WebP support does not automatically mean AVIF support.
- The WordPress uploads directory must be writable by PHP.
- The server must provide enough memory and execution time for the images being processed.
Required for automatic delivery on Apache or LiteSpeed:
- Apache-compatible rewrite support (
mod_rewrite). - MIME support (
mod_mime). - Header support (
mod_headers). Without it the rewrite rules stay inactive, so caches never store an optimized file withoutVary: Accept. .htaccessfiles must be allowed and processed for the uploads directory.- On Apache, this normally requires an appropriate
AllowOverridesetting. - The uploads directory or its existing
.htaccessfile must be writable by PHP when the plugin manages delivery rules. - When theme image optimization is enabled, the active theme directory must meet the same requirements.
- If the site root
.htaccessalready has rewrite rules for the uploads or theme folder (for example a media protection plugin), PDEV does not write its own.htaccessthere, because that would switch those rules off. System status shows the generated rules to add to the root.htaccessbelow the existing rules.
Required for delivery on Nginx:
- Access to the Nginx website configuration.
- Permission to add the generated
mapblock to thehttpcontext. - Permission to add the generated
locationblock to the correctservercontext. - Permission to test and reload Nginx after changing the configuration.
- Server-level
add_headerdirectives (HSTS, CORS) are not inherited by the generatedlocation; repeat them inside it. Deny rules for private upload folders must uselocation ^~.
If you use managed hosting and do not have access to these settings, ask your hosting provider:
- Whether Imagick or GD supports WebP or AVIF.
- Whether the required Apache modules are enabled.
- Whether
.htaccessoverrides are allowed.
PDEV Image Optimizer cannot bypass server restrictions imposed by the hosting provider.
Hosting resource protection and image limits
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:
- Maximum source file size: 64 MB.
- Maximum width or height: 16,384 pixels.
- Maximum total image size: 25 megapixels.
Additional GD protection:
- GD conversion uses a conservative 256 MB per-request memory budget.
- The estimate includes decoded image pixels, the source file, current PHP memory usage, and a reserved safety margin.
- Your hosting provider or PHP configuration may impose a lower effective limit.
Additional Imagick protection:
- Memory limit: 128 MB.
- Memory-map limit: 256 MB.
- Temporary disk limit: 512 MB.
- Processing time limit: 30 seconds.
- Thread limit: 1 thread.
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.
Safe and restartable bulk optimization
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:
- The original image.
- Multiple registered thumbnail sizes.
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.
External services
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
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:
- Open Tools > Image Optimizer > System status.
- Review the detected configuration issues.
- Copy the system report or export its JSON file.
- Include the relevant diagnostic information in your forum post.
The support report is designed to omit URLs, credentials, personal data, full server paths, and media content.
Installation
- Install and activate PDEV Image Optimizer.
- Open Tools > Image Optimizer > Settings.
- Review the Overview section and follow the instruction next to every yellow or red check.
- Choose WebP or AVIF as the output format.
- Select the source image formats you want to convert.
- Choose conversion quality.
- Configure automatic optimization and optional theme image optimization.
- Click Save settings.
- On Nginx, open System status > Nginx configuration, copy the generated configuration blocks to your server configuration, test it, and reload Nginx.
- Click Test image delivery in Overview.
- Confirm that the response is
image/webporimage/avif. - Open Media library and start optimization for existing images.
Do not enable overlapping WebP or AVIF delivery rewrite rules in multiple image optimization plugins.
Changelog
Security hardening for CERT VU#580079 (ImageMagick): disguised SVG, MSL or PostScript files are rejected before conversion. System status now warns when the server ImageMagick policy allows risky coders.
1.4.3
- [Security] Imagick opens every source image with an explicit JPEG, PNG, GIF or WebP decoder chosen from the file content, so a disguised SVG, MSL or PostScript file is rejected instead of reaching a dangerous ImageMagick coder (CERT VU#580079).
- [Added] System status warns when the server ImageMagick security policy does not block the MSL, PS, EPS or PDF coders, and the diagnostic report lists them.
1.4.2
- [Fixed] “Regenerate all thumbnails” now rebuilds sizes from the original upload instead of the
-scaledor-rotatedcopy, so existing thumbnail URLs keep working and the original image stays linked to the attachment. - [Fixed] A failed thumbnail regeneration (editor, memory or resource limit) restores the previous metadata and no longer deletes existing thumbnails. Files shared with another attachment are never removed.
- [Fixed] Thumbnail regeneration resumes from the last processed image after an interruption, retries a busy lock or transient server errors, and no longer slows down on large libraries.
- [Security] Optimized WebP/AVIF files are removed when their source image is deleted, even while another image operation is running, and Apache/Nginx rules only serve an optimized file while its source still exists.
- [Security] PDEV no longer writes rewrite rules into the uploads or theme
.htaccesswhen the site root.htaccesshas rewrite rules for that folder (for example media protection plugins); the rules are shown for manual placement instead. - [Security] On multisite, Cloudflare actions and theme image operations require network administrator rights.
- [Fixed] Apache rewrite rules are active only when
mod_headersis available, so caches never store an optimized variant withoutVary: Accept. The delivery test also checks theVaryheader. - [Fixed] The generated Nginx location is limited to the uploads and theme folders and documents how to keep server-level headers and private-folder deny rules.
- [Fixed] Cloudflare zone cache is purged only after a run that changed optimized files; the purge permission check no longer purges the whole zone.
- [Fixed] Deleting media no longer causes a fatal error when WordPress cannot initialize its filesystem, and non-array attachment metadata from other plugins no longer causes a fatal error.
- [Fixed] Animated PNG (APNG) images are skipped instead of being converted to a static first frame.
- [Fixed] Cleanup removes stale temporary files left by an interrupted conversion and works when the uploads folder is a symlink.
- [Fixed] Multisite: cleanup and uninstall on the main site no longer touch subsite files, uninstall cleans every site, and network deactivation removes rules for every site.
- [Fixed] Uninstall no longer stops halfway on an unreadable folder.
- [Fixed] Bulk optimization retries HTTP 500 responses so the crash-skip logic can move past a failing image, and refreshes an expired REST nonce during long runs.
- [Fixed] WP-CLI
optimizereports a lost lock as an error instead of a fatal error. - [Performance] Media Library status uses a single aggregate query; theme image runs write their state once per batch and cache the theme status for five minutes.
- [Performance] Failure tracking skips option updates for unchanged entries and avoids reading the failure list for empty batches.
- [Performance] Automatic conversion avoids repeatedly encoding unchanged images whose optimized result was not smaller during successive metadata updates in the same upload request. Content changes and conversion errors remain retryable.
- [Performance] Cleanup scans use resumable directory batches, skip unreadable directories with a warning, and stop at the preview limit instead of walking the remaining tree. WP-CLI completes the scan before reporting or requesting deletion.
- [Performance] Media Library status reads only optimization signatures in bounded batches instead of loading all attachment metadata.
1.4.1
- [Fixed] Retried bulk starts retain their run identity and checkpoints; the last completed response can be replayed after a lost connection.
- [Fixed] Image operations and settings changes share a connection-scoped database lock, including CLI, retries, thumbnail regeneration and cleanup.
- [Fixed] Cleanup invalidates optimization state before deleting current variants, including interrupted or partially completed batches.
- [Fixed] Theme image conversion persists crash markers and per-image results so resumed batches skip repeatedly crashing files.
- [Fixed] Distribution builds reject output paths that would delete plugin sources or traverse directory links.
- [Fixed] Apache cache headers now match generated .pio.webp and .pio.avif files.
- [Fixed] Re-conversion removes an older optimized variant when the new result is not smaller than the source; failed removal is reported as an error.
- [Fixed] The Cloudflare delivery test finds current sidecar names and validates both HTTP statuses, image MIME types and Vary: Accept headers.
1.4.0
- [New] WP-CLI support. Run bulk optimization, targeted conversion, generated-file cleanup, the live delivery test, and format or speed changes from the command line with
wp pdevio(optimize,convert,cleanup,status,test-delivery,set). Theoptimizecommand shares the same lock as the admin screen, so a command-line run and a browser run never process the same images at once. - [New] Optimization speed setting (Conservative, Balanced, Fast) on the Settings screen. Bulk optimization now grows to larger batches with shorter pauses while the server keeps up, and still drops back to one image per request the moment a batch runs long or memory gets tight. Balanced is the new default. Shared hosting that sees timeouts can switch to Conservative; a VPS or dedicated server can use Fast. Filters
pdev_image_optimizer_max_batch_limitandpdev_image_optimizer_min_cooldown_mstune the ceilings further. - [New] “Force optimize all” button on the Media Library screen re-optimizes every image from the start, next to the normal button that resumes where it left off. A “Stop optimization” button pauses a run with its progress saved; the button then reads “Continue optimization”.
- [Changed] The main plugin screen is now a short summary: one line confirming that optimized images are being served, or only the checks that still need attention. The full diagnostic Overview moved to the top of the System status screen. When the live delivery test confirms visitors receive the optimized images, the summary is shown in green and a leftover competing rewrite rule from another plugin is treated as optional cleanup rather than a warning; the note about it now lives on System status.
- [Changed] Removed the database table that tracked generated files. A generated WebP or AVIF file is now identified only by its exact name (
image.jpg.pio.webp) and its location inside the uploads or active theme folder. Cleanup and uninstall never remove a file unless a real source extension precedes.pio.in its name and it sits in a managed folder, so a file you happened to namesomething.pio.webpis always left alone. The old table is dropped automatically on update. New filterpdev_image_optimizer_generated_rootsadds folders to the scan for sites that store media elsewhere. - [Changed] Overwriting a generated file no longer depends on a database record. Any file at the reserved
.pio.webpor.pio.avifpath derived from a real source image is treated as PDEV’s own and refreshed normally.
Screenshots
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best PDEV Image Optimizer alternatives
All AVIF plugins →FAQ
PDEV Image Optimizer – WebP & AVIF: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is PDEV Image Optimizer free?
Yes. PDEV Image Optimizer is free to download and use from the official WordPress.org plugin directory.
Is PDEV Image Optimizer safe to use in 2026?
PDEV Image Optimizer is a solid plugin choice in 2026, with a few things worth checking first. It runs on 100+ sites, is rated 5/5 and was last updated 2 weeks ago, and scores 75/100 on our health check.
How many websites use PDEV Image Optimizer?
PDEV Image Optimizer is active on 100+ WordPress websites and has been downloaded 1,357 times since it launched in August 2026. It was downloaded 537 times in the last 30 days.
Does PDEV Image Optimizer work with WordPress 7.1?
Yes. The developer has tested PDEV Image Optimizer up to WordPress 7.1.5, the latest release. It requires WordPress 6.4 or newer.
What PHP version does PDEV Image Optimizer need?
PDEV Image Optimizer requires PHP 8.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was PDEV Image Optimizer last updated?
The latest version, 1.4.3, was released on November 14, 2026 (2 weeks ago).
Who makes PDEV Image Optimizer?
PDEV Image Optimizer is developed and maintained by Grzegorz Puszka.
What are the best alternatives to PDEV Image Optimizer?
The most popular alternatives to PDEV Image Optimizer are Optimole (200K+ installs), Modern Image Formats (100K+ installs) and Robin Image Optimizer (90K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
