Title: WebP Image Optimization
Author: adgardner1392
Published: <strong>October 3, 2024</strong>
Last modified: January 27, 2026

---

Search plugins

![](https://ps.w.org/webp-image-optimization/assets/icon-256x256.png?rev=3162283)

# WebP Image Optimization

 By [adgardner1392](https://profiles.wordpress.org/adgardner1392/)

[Download](https://downloads.wordpress.org/plugin/webp-image-optimization.1.5.zip)

 * [Details](https://pcd.wordpress.org/plugins/webp-image-optimization/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/webp-image-optimization/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/webp-image-optimization/#installation)
 * [Development](https://pcd.wordpress.org/plugins/webp-image-optimization/#developers)

 [Support](https://wordpress.org/support/plugin/webp-image-optimization/)

## Description

**WebP Image Optimization** enhances your website’s performance by converting uploaded
JPEG and PNG images to the more efficient WebP (or AVIF) format. It also allows 
you to resize images to specified maximum dimensions and adjust image quality and
compression settings. With the latest update, you can now convert existing images
directly from the Media Library and view detailed file size savings, making the 
optimization process more insightful and streamlined.

**Key Features:**

 * **Automatic Conversion to WebP or AVIF:**
    - Converts JPEG and PNG images to WebP or AVIF format upon upload.
    - Option to exclude JPEG and/or PNG images from conversion.
 * **Media Library Integration:**
    - **New in v1.4.0:** Added WebP conversion option directly within the Media 
      Library.
    - Easily convert existing images to WebP without re-uploading.
    - **v1.3.1:** Added redirection/refresh when an existing image is converted 
      to WebP in the Media library.
 * **Image Resizing:**
    - Resize images that exceed user-defined maximum width and height.
    - Maintains aspect ratio during resizing.
 * **Quality and Compression Control:**
    - Set WebP quality (0-100).
    - Set AVIF compression level (0-9).
    - Set JPEG quality (0-100).
    - Set PNG compression level (0-9).
    - Adjust settings via intuitive sliders or input fields.
 * **File Size Savings Display:**
    - **New in v1.4.0:** Displays original and WebP file sizes in a readable format(
      KB/MB).
    - Shows the amount of file size saved both in bytes and percentage.
    - Enhances transparency of optimization benefits.
 * **Settings Page:**
    - Accessible under **Tools > WebP Image Optimization** in the WordPress admin
      dashboard.
    - User-friendly interface with responsive design.
 * **Optimized for Performance:**
    - Uses vanilla JavaScript for settings page interactions.
    - Follows WordPress coding standards and best practices.
    - Minimal impact on server resources.

**Benefits:**

 * **Improved Page Load Times:**
    - WebP/AVIF images are typically smaller than JPEG and PNG, reducing bandwidth
      usage.
    - Faster image loading enhances user experience.
 * **SEO Advantages:**
    - Improved site speed can positively impact search engine rankings.
 * **User Control:**
    - Flexible settings allow customization based on specific needs.
    - Ability to maintain original image formats if desired.
 * **Enhanced Convenience:**
    - Convert existing images directly from the Media Library, saving time and effort.
    - View detailed file size savings to understand optimization impact.

### Roadmap

 * Implement fallback mechanisms for browsers that do not support WebP.
 * Add bulk conversion option for existing images in the media library.
 * Provide more granular control over image resizing and quality settings.
 * Enhance compatibility with other media-related plugins.
 * Introduce advanced reporting on overall file size savings across the website.

### Support

For support, please visit the [plugin support forum](https://wordpress.org/support/plugin/webp-image-optimization/)
or the [GitHub repository](https://github.com/adgardner1392/webp-image-optimization/issues).

## Installation

 1.  **Upload the Plugin:**
 2.   * Upload the `webp-image-optimization` folder to the `/wp-content/plugins/` directory.
      * Alternatively, install the plugin through the WordPress plugins screen directly
        by searching for “WebP Image Optimization”.
 3.  **Activate the Plugin:**
 4.   * Activate the plugin through the ‘Plugins’ screen in WordPress.
 5.  **Configure Settings:**
 6.   * Navigate to **Tools > WebP Image Optimization** to access the settings page.
      * Set your desired maximum image dimensions, JPEG quality, PNG compression level,
        and conversion preferences.
 7.  **Optimize Existing Images:**
 8.   * Go to the **Media Library**.
      * Select images you wish to convert to WebP.
      * Click the newly added **Convert to WebP** option to optimize your existing 
        images.
 9.  **Enjoy Optimized Images:**
 10.  * Upload new images via the Media Library or post editor.
      * The plugin will automatically resize and convert images based on your settings.

## FAQ

### Does this plugin convert existing images in my media library?

**Yes, starting from version 1.4.0,** you can convert existing JPEG and PNG images
to WebP directly from the Media Library using the new conversion option.

### What happens to the original JPEG or PNG files after conversion?

By default, the original images remain on the server. You can choose to delete them
manually if desired.

### Can I exclude certain image types from conversion to WebP?

Yes, the settings page allows you to exclude JPEG and/or PNG images from being converted
to WebP.

### What if my server doesn’t support WebP images?

The plugin requires the GD library with WebP support enabled on your server. Most
modern servers have this capability. If not, contact your hosting provider.

### Will the converted WebP images work on all browsers?

Most modern browsers support WebP images. For browsers that do not support WebP,
the plugin ensures that the original image formats are served as fallbacks.

### Can I adjust the image quality and compression settings?

Yes, you can set the JPEG quality (0-100) and PNG compression level (0-9) via the
settings page to balance between image quality and file size.

### How are file size savings displayed?

After conversion, the plugin displays the original and WebP file sizes in a readable
format (KB/MB) along with the amount of file size saved both in bytes and percentage.

## Reviews

![](https://secure.gravatar.com/avatar/676f02256b03469dde279fb19c12686ba557abc799d7ee405245fc0e66861c4b?
s=60&d=retro&r=g)

### 󠀁[A Simple yet Effective WordPress Plugin](https://wordpress.org/support/topic/a-simple-yet-effective-wordpress-plugin/)󠁿

 [Matthias Blenk](https://profiles.wordpress.org/lunovis/) October 2, 2025

I’ve tried several WordPress plugins aimed at optimizing images, but none have impressed
me as much as WebP Image Optimization. What sets this plugin apart is its perfect
balance of simplicity and functionality. With a minimalistic approach, it offers
all the essential features one needs without cluttering the interface with unnecessary
options.The plugin seamlessly integrates into the WordPress Tools section, though
it would be even better if the settings were directly incorporated into the native
Media settings of WordPress. Upon uploading an image, it automatically scales the
image to the desired sizes (of course it would be nice if height could be skipped
e.g. for long infographics) and converts it to WebP format, which is a significant
step towards optimizing website performance.One of the aspects I appreciate most
about this plugin is its straightforwardness. There’s no “Pro” version to upsell
you on additional features, no registration, which means you get everything you 
need right from the start. For advanced users who require bulk conversions, they
can use WP CLI, allowing easy regeneration of images and conversion to WebP as set
in the plugins options. Here’s a snippet of the commands one can use for bulk operations:#
Regenerate and convert all media library entries based on the plugin’s settingswp
media regenerate# Replace references to old image formats within posts and pagesfor
ext in .jpeg .jpg .png; do wp search-replace $ext .webp; done# Remove the original
imagesfind wp-content/uploads/ -type f \( -name ‘*.jpeg’ -o -name ‘*.jpg’ -o -name‘*.
png’ \) -exec rm {} + Kudos to the developer for creating a plugin that gets the
job done without unnecessary bloat. My experience with WebP Image Optimization has
been nothing but positive, and I look forward to continuing to use it. Thank you
to the developer for a job well done!

![](https://secure.gravatar.com/avatar/62ee47b134892f4636d1205098dfc1348e4a8c382b99320f9e533eb12ba6c792?
s=60&d=retro&r=g)

### 󠀁[Minimal, lightweight plugin that does the job!](https://wordpress.org/support/topic/minimal-lightweight-plugin-that-does-the-job/)󠁿

 [ElectroN](https://profiles.wordpress.org/ihou/) December 6, 2024

Thanks for this lightweight plugin that simply does what it’s needed. Converting
images to webP on upload with auto-resize option. Hint:I had some issues with my
server configuration so I forced it to use GD image library since imagick throw 
an error for bigger images, although the image was still being processed and uploaded.
Can’t wait for Bulk image processing to arrive.

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/webp-image-optimization/reviews/)

## Contributors & Developers

“WebP Image Optimization” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ adgardner1392 ](https://profiles.wordpress.org/adgardner1392/)

[Translate “WebP Image Optimization” into your language.](https://translate.wordpress.org/projects/wp-plugins/webp-image-optimization)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/webp-image-optimization/),
check out the [SVN repository](https://plugins.svn.wordpress.org/webp-image-optimization/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/webp-image-optimization/)
by [RSS](https://plugins.trac.wordpress.org/log/webp-image-optimization/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.5

 * Added AVIF support.

#### 1.4.1

 * Replaced jQuery usage with vanilla JavaScript for the WebP conversion button 
   in the media library.
 * Improved performance and compatibility by removing dependency on jQuery.

#### 1.4.0

 * **New Feature:** Added the ability to display original and WebP file sizes in
   a readable format (KB/MB) along with the amount saved in both bytes and percentage.
 * Enhanced the Media Library conversion interface to show detailed file size savings.
 * Improved user interface for better readability and understanding of optimization
   benefits.

#### 1.3.1

 * Add redirection/refresh when an existing image is converted to WebP in the Media
   library.

#### 1.3.0

 * **Media Library Integration:**
    - Added WebP conversion option directly within the Media Library.
    - Enables users to convert existing JPEG and PNG images to WebP without re-uploading
      them.

#### 1.2.0

 * Amend incorrect URI links.

#### 1.1.0

 * **Security Fixes:**
    - Escaped all dynamic output to comply with WordPress standards.
    - Replaced `_e()` with `esc_html_e()` for translatable strings in settings page.
    - Escaped input values using `esc_attr()` in form fields.
    - Escaped plain text output using `esc_html()` where applicable.
    - Ensured all outputs are properly escaped to prevent XSS vulnerabilities.

#### 1.0.0

 * Initial release.
 * Automatic conversion of JPEG and PNG images to WebP format.
 * Image resizing based on user-defined maximum width and height.
 * Settings page under **Tools** with options for:
    - Maximum image dimensions.
    - JPEG quality and PNG compression levels.
    - Excluding JPEG and/or PNG images from conversion.
 * Responsive design with sliders and inputs for settings adjustments.
 * Vanilla JavaScript used for settings interactions.
 * Follows WordPress coding standards and best practices.

## Meta

 *  Version **1.5**
 *  Last updated **2 months ago**
 *  Active installations **60+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/webp-image-optimization/)
 * Tags
 * [image conversion](https://pcd.wordpress.org/plugins/tags/image-conversion/)[image optimization](https://pcd.wordpress.org/plugins/tags/image-optimization/)
   [jpeg](https://pcd.wordpress.org/plugins/tags/jpeg/)[png](https://pcd.wordpress.org/plugins/tags/png/)
   [webp](https://pcd.wordpress.org/plugins/tags/webp/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/webp-image-optimization/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/webp-image-optimization/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/webp-image-optimization/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/webp-image-optimization/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/webp-image-optimization/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/webp-image-optimization/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/webp-image-optimization/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/webp-image-optimization/reviews/)

## Contributors

 *   [ adgardner1392 ](https://profiles.wordpress.org/adgardner1392/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/webp-image-optimization/)