बिबरन
Pixellize Image Optimizer is a fast, lightweight, and beginner-friendly WordPress plugin that automatically converts uploaded images into modern WebP format.
It ensures that your website loads faster by replacing original image URLs across your entire site — including post content, image tags, and responsive srcset.
⚡ No manual conversion. No complex setup. Just upload and optimize.
🔥 Key Features
✅ Automatic WebP conversion on image upload
✅ Bulk optimize images already in your library, with a live progress bar and background processing
✅ Optimize a single page’s images on demand from the admin toolbar
✅ Supports JPG, JPEG, PNG, BMP, and AVIF
✅ Skips images already in WebP format
✅ Smart fallback to Imagick if GD is unavailable
✅ Adjustable WebP quality (0–100, default: 85)
✅ Optional maximum image dimension to scale down large uploads before conversion
✅ Replace image URLs in:
- Attachment tags
- srcset (responsive images)
- Post/page content
✅ Keep originals and add WebP for every size, or replace and delete to save storage
✅ Restore a single image back to its original from the Media Library
✅ Keeps original file safe if conversion fails
✅ Prevents duplicate conversions
✅ Activation blocked if no supported library (GD/Imagick) is found
🚀 Why Use This Plugin?
- Improve Core Web Vitals (LCP, CLS)
- Boost SEO rankings
- Reduce page load time
- Save server storage
- Deliver modern image formats automatically
Requirements
- PHP 7.4 or higher
- PHP GD extension (recommended) or Imagick
Usage
- Upload images normally via Media Library
- Images are automatically converted to WebP
- Customize settings under Tools Pixellize Image Optimizer
- Already converted images are skipped automatically
Roadmap
- Serve WebP everywhere, including page builders and ACF fields, via output rewriting
- CDN URL rewriting (use your own CDN host for images)
- AVIF output alongside WebP
- Lazy loading integration
License
This plugin is licensed under GPL v2 or later.
Author
Pixellize
🌐 https://pixellize.io
Installation
- Download the plugin ZIP file
- Go to Plugins Add New Upload Plugin
- Upload and click Install Now
- Activate the plugin
- Configure settings under Tools Pixellize Image Optimizer
FAQ
-
What image formats are supported?
-
JPG, JPEG, PNG, BMP, and AVIF. GIF is not supported.
-
Does it convert existing images?
-
Yes. Go to Tools, Pixellize Image Optimizer, and use “Bulk optimize existing images”. It builds a WebP version for every image that was in your library before the plugin, including all generated sizes. Originals are kept, so nothing breaks, and the run continues in the background even if you close the tab.
-
Is the original image deleted?
-
By default yes. The upload is replaced by a single WebP and the original is deleted after a successful conversion to save storage. Turn on “Keep original image” to keep the original in your Media Library with a WebP copy alongside it, which also enables restoring an image to its original.
-
How do I switch back to the original image?
-
Use the “Restore original” link on a single image in the Media Library. It points the attachment back at the original and removes the WebP copies. This works while the original is still on disk (Keep Original turned on).
-
What if my server doesn’t support GD?
-
The plugin automatically uses Imagick as a fallback. If neither is available, activation will be blocked with an admin notice.
-
Can I control image quality?
-
Yes, you can set quality from 0 to 100. Default is 85.
-
What happens if I upload a WebP image?
-
It is skipped — no processing is done.
समीक्षा
Contributors & Developers
“Pixellize Image Optimizer” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Pixellize Image Optimizer” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.5
- New “Bulk optimize existing images” tool under Tools, Pixellize Image Optimizer. It builds a WebP version for images that were already in your library, including every generated size, with a live progress bar.
- The bulk run is additive and keeps your originals, so existing links and pages never break.
- Processing runs in small batches over AJAX and keeps going in the background through a scheduled task, so it survives closing the tab and finishes large libraries safely.
- A lock prevents the foreground and background runs from processing the same image twice, and conversion stats stay accurate on re-runs.
- New “Serve WebP everywhere (server level)” toggle. It adds a small rule to your uploads .htaccess so the server delivers the WebP version of any image that has one, including images added by themes, page builders, custom fields, and CSS backgrounds, with no per-page processing. If an image has no WebP, its real format is served, so nothing breaks. Needs “Keep original image” on, and an Apache or LiteSpeed server.
- New “Resize large uploads” toggle. When turned on, large uploads are scaled down to a maximum width/height (default 2048px) before WebP conversion, which often saves more than the conversion alone. Off by default, so images upload at their real size, and existing images are never changed.
- New “Optimize images” button in the admin toolbar on the front end. While viewing any post or page, you can build WebP for just that page’s images (featured image, images in the content, and attached media) in one click. Useful for getting your most important pages onto WebP first without waiting for a full library run.
- The page button shows a live count as it works (1 / 3, 2 / 3, 3 / 3), clears the page cache, then reloads the page so you immediately see the WebP versions.
- The Savings panel now refreshes after a bulk run so the Converted, Original, and WebP totals include the images just processed.
- New “Settings” link on the Plugins page for quick access.
- Full WebP srcset on attachment images and on images inside post and page content, so responsive images serve WebP at every size, not just the main src.
0.4
- New “Keep original image” mode (off by default). When enabled, the original stays as the file in your Media Library and a WebP copy is built for the full image and every generated size, so responsive images are covered too, and visitors are served the WebP for speed. When disabled, the upload is replaced by a single WebP and the original is deleted to save storage.
- New “Restore original” action in the Media Library for any WebP attachment that still has its original on disk. It points the attachment back at the original, rebuilds the sizes, and removes the WebP copies.
- Originals and WebP copies are now cleaned up together when you delete an image, so no files are left orphaned on disk.
- Turning “Keep original” off keeps the previous behavior: the upload is replaced by a single WebP and the original is deleted to save storage.
0.3
- Tested with WordPress 7
- WordPress Coding Standards compliance: documented intentional uses of fopen create-exclusive (atomic WebP filename reservation) and direct $wpdb counter updates (atomic stats increments)
- error_log fallback for anonymous upload failures now gated behind WP_DEBUG
- Suppressed nonce-verification warning on the post-redirect stats_reset display flag (nonce is checked at the action handler before the redirect)
0.2
- Admin notice on conversion failure with the filename, MIME type, and a specific reason (e.g. corrupt source, missing AVIF support, Imagick exception)
- Per-user failure log (last 10 events) shown on next admin page load, then cleared automatically
- Unique WebP filenames when a same-name image already exists in the upload folder, so re-uploads no longer overwrite or alias the previous attachment
- Statistics panel on the settings page showing total images converted, original total size, WebP total size, and bytes saved with a percentage
- Reset Statistics button to clear the saved totals
- Clean uninstall: removes all plugin options and per-user data when the plugin is deleted
- Failure notices now only show on media-related screens, not on every admin page
- Per-request cache for filesystem checks in the WebP URL filters to reduce stat calls on image-heavy pages
- Atomic SQL increments for stats: concurrent uploads no longer drop counts (split the serialized stats array into three numeric options, migrated automatically)
- Atomic WebP filename reservation with create-exclusive open and random-suffix retry, so two concurrent uploads of the same name cannot overwrite each other
- PHP error log fallback when an upload fails outside of a logged-in user context, so failures from front-end forms or unauthenticated REST calls are no longer silently dropped
- Failure notices now gate on login state rather than the upload_files capability, so any role with stored failures still sees its own notices
0.1
- Initial release
- Auto WebP conversion (JPG, PNG, BMP, AVIF)
- GD with Imagick fallback
- Quality control option
- Format selection settings
- URL replacement across site
- Activation check for required libraries

