Title: MegaOptim Image Optimizer &#8211; Optimize Images, Compress Images, Convert to WebP &amp; AVIF
Author: MegaOptim
Published: <strong>October 5, 2018</strong>
Last modified: April 9, 2026

---

Search plugins

![](https://ps.w.org/megaoptim-image-optimizer/assets/banner-772x250.png?rev=3502609)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/megaoptim-image-optimizer/assets/icon-256x256.png?rev=3502609)

# MegaOptim Image Optimizer – Optimize Images, Compress Images, Convert to WebP & AVIF

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

[Download](https://downloads.wordpress.org/plugin/megaoptim-image-optimizer.zip)

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

 [Support](https://wordpress.org/support/plugin/megaoptim-image-optimizer/)

## Description

MegaOptim 2.0 is a WordPress image optimization plugin built for sites that want
to optimize images and move older JPG, PNG, and GIF libraries to next-gen formats
like WebP and AVIF. You can convert images, compress originals, optimize supported
next-gen images, process the Media Library or server folders in bulk, and deliver
the best available format automatically on the front end.

If your goal is to convert JPEG to WebP, convert PNG to WebP, generate AVIF versions
for better performance, optimize existing WebP and AVIF assets, or use smart compression
instead of fixed local compression, MegaOptim 2.0 is designed around that workflow.
Next-gen format generation is a major focus of this release, but 2.0 is not limited
to conversion only.

#### Why Use MegaOptim?

 * Optimize supported JPEG, PNG, GIF, WebP, and AVIF images
 * Convert JPEG, PNG, and GIF images to WebP and AVIF
 * Bulk process the WordPress Media Library
 * Browse and process folders outside the Media Library
 * Use fixed local compression or smart MegaOptim Cloud compression
 * Automatically convert or compress newly uploaded images
 * Serve WebP and AVIF with Apache `.htaccess` or PHP passthru
 * Track background jobs with a built-in queue monitor
 * Restore compressed originals from backup or remove generated next-gen files
 * Optionally process retina images generated by WP Retina 2x / Perfect Images
 * Use WP-CLI for bulk conversion, stats, reset, logs, and queue tools

#### Conversion-First Workflow

MegaOptim 2.0 keeps your original uploads in place and generates next-gen derivatives
alongside them. That means you can convert older JPG, PNG, and GIF images to WebP
or AVIF without replacing the original source file. On the front end, MegaOptim 
can serve the best format supported by the visitor’s browser while keeping the original
file available as a fallback.

#### Local vs Cloud Processing

MegaOptim works without an API key. If your server has GD or Imagick support, you
can do local processing for WebP conversion, local AVIF generation when your server
supports it, and basic local compression for JPEG and PNG images. Local compression
is useful when you want a simple, fixed local workflow on your own server.

If you add a MegaOptim API key, MegaOptim Cloud can offload processing from your
server and is the recommended option for smart compression, original-format compression,
direct WebP and AVIF optimization, and broader AVIF workflows. This is the better
path when you want smarter results than fixed local compression. The cloud plan 
is available for just **$49 per year** and can be used on **unlimited sites**. You
can get an API key from [the MegaOptim dashboard](https://app.megaoptim.com/) and
see plans at [MegaOptim pricing](https://megaoptim.com/pricing/).

#### What MegaOptim 2.0 Can Do

 * Convert mode: Generate WebP or AVIF versions from JPEG, PNG, and GIF images
 * Compress mode: Optimize original images with fixed local compression or smart
   cloud compression, and optionally generate next-gen formats during compression
 * Next-gen optimization: Optimize existing WebP and AVIF images through the cloud
   compression workflow
 * Media Library view: Process individual images, selected images, or run bulk jobs
   across the library
 * File System view: Browse folders on your server and bulk-convert images outside
   the Media Library
 * Upload automation: Automatically convert or compress new uploads in the background
 * Delivery settings: Choose Apache `.htaccess` rules or PHP passthru rewriting 
   to serve WebP and AVIF
 * Queue monitor: Watch active jobs, progress, failures, and background processing
   state
 * Tools page: Run restore actions for compressed originals or remove generated 
   WebP/AVIF derivatives
 * Restore support: Restore compressed images from backup and regenerate thumbnails
 * Logging and diagnostics: Use the built-in log viewer and queue statistics through
   WP-CLI
 * Retina support: Optionally process `@2x` images created by WP Retina 2x or Perfect
   Images

#### Migration From Older MegaOptim Versions

MegaOptim 2.0 includes background migration for legacy settings and older attachment
data. Existing users can upgrade and let MegaOptim migrate data in batches, with
progress shown inside the admin UI while migration is running.

## Screenshots

 * [[
 * Optimizer dashboard with totals, bulk actions, and space savings overview
 * [[
 * Comparison Modal #1
 * [[
 * Comparison Modal #2
 * [[
 * Settings: API Key
 * [[
 * Settings: Conversion with Cloud Processing
 * [[
 * Settings: Conversion with Local Processing
 * [[
 * Settings: Compression with Cloud Processing
 * [[
 * Settings: Compression with Local Processing
 * [[
 * Settings: Upload behavior
 * [[
 * Settings: Frontend delivery for WebP/Avif
 * [[
 * Settings: Advanced
 * [[
 * Settings: Queue Monitor for background jobs

## Installation

 1. Upload the MegaOptim plugin to `/wp-content/plugins/` or install it through the
    WordPress plugin screen.
 2. Activate the plugin.
 3. In WordPress admin, go to `Media > MegaOptim`.
 4. Open `Settings` and choose local processing or add a MegaOptim API key for cloud
    processing.
 5. Configure your conversion format, compression options, upload automation, and delivery
    method.
 6. Go to the `Optimizer` page to process Media Library images, or switch to `File 
    System` view to convert folders on your server.

## FAQ

### How do I convert JPEG to WebP in WordPress?

Install and activate MegaOptim, open `Media > MegaOptim`, choose `Convert` mode,
set the output format to `WebP`, and start a bulk job from the Media Library or 
File System view. MegaOptim 2.0 is built specifically for converting older JPG, 
PNG, and GIF image libraries to next-gen formats.

### Can I convert PNG images to AVIF?

Yes. MegaOptim can generate AVIF images when AVIF is available through MegaOptim
Cloud or through compatible local server support. If your server does not support
local AVIF encoding, use MegaOptim Cloud for PNG to AVIF conversion.

### Can MegaOptim convert GIF images to WebP or AVIF?

Yes. MegaOptim 2.0 can convert GIF images to next-gen formats as part of its conversion
workflow, alongside JPG and PNG images. You can run those conversions from the Media
Library or from the File System view.

### Does MegaOptim work without an API key?

Yes. MegaOptim 2.0 supports local processing without an API key. Local WebP conversion,
local AVIF generation when supported, and basic local JPEG/PNG compression depend
on the GD or Imagick capabilities available on your server. Cloud processing requires
an API key and is the recommended path when you want smart compression instead of
fixed local compression.

### What is the difference between Convert and Compress?

Convert creates next-gen WebP or AVIF files alongside the original image. `Compress`
optimizes the original image file itself and can also generate WebP or AVIF during
compression, depending on your settings. Local compression is a more fixed local
workflow, while cloud compression is the smart option and can also optimize existing
next-gen formats directly.

### Why use MegaOptim Cloud compression instead of local compression?

Local compression is useful when you want a simple fixed workflow on your own server.
MegaOptim Cloud is the recommended option when you want smart compression, direct
WebP and AVIF optimization, and less CPU and memory usage on your hosting. The cloud
plan is available for **$49 per year** and works on **unlimited sites**.

### Can MegaOptim optimize existing WebP and AVIF files?

Yes. MegaOptim 2.0 is not limited to converting older formats. MegaOptim Cloud compression
can optimize existing WebP and AVIF images directly, in addition to optimizing JPG,
PNG, and GIF files. Local compression remains focused on JPEG and PNG.

### Can MegaOptim automatically convert uploaded images?

Yes. You can enable automatic conversion or automatic compression for newly uploaded
images. MegaOptim processes those jobs in the background so new uploads can be handled
without manual bulk actions.

### How are WebP and AVIF images served on the front end?

MegaOptim can serve next-gen images through Apache `.htaccess` rules or a PHP passthru
delivery mode. Both options are designed to serve WebP and AVIF to supported browsers
while keeping the original image as a fallback.

### Can I restore my original images?

Yes. If you compressed originals with backups enabled, MegaOptim can restore the
original image and regenerate thumbnails. You can also remove generated WebP and
AVIF derivative files without changing the original upload.

### Can I process folders outside the Media Library?

Yes. MegaOptim 2.0 includes a File System view that lets you browse server folders
and bulk-convert images outside the WordPress Media Library.

### Does MegaOptim support WP-CLI?

Yes. Current commands include `wp megaoptim convert`, `wp megaoptim stats`, `wp 
megaoptim reset`, `wp megaoptim log`, `wp megaoptim queue:process`, and `wp megaoptim
queue:stats`.

### What happens when I upgrade from an older MegaOptim version?

MegaOptim 2.0 migrates legacy settings and attachment data in the background. If
migration is needed, the plugin shows a migration progress banner in the admin area
while the old data is being imported into the new 2.0 tables.

## Reviews

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

### 󠀁[Great Plugin for betterfounder.com](https://wordpress.org/support/topic/great-plugin-38274/)󠁿

 [Better Founder](https://profiles.wordpress.org/betterfounder/) September 20, 2024

Thanks for the efforts

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

### 󠀁[Goooooood](https://wordpress.org/support/topic/goooooood-16/)󠁿

 [حجره جو](https://profiles.wordpress.org/hojrejo/) December 31, 2023

👌👌👌👌👌👌👌

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

### 󠀁[Good](https://wordpress.org/support/topic/good-8090/)󠁿

 [pongsak465](https://profiles.wordpress.org/pongsak465/) July 25, 2023

Good job!!

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

### 󠀁[works great](https://wordpress.org/support/topic/works-great-8895/)󠁿

 [tv4265](https://profiles.wordpress.org/tv4265/) July 20, 2023

Works well with PHP version 5.6.20.

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

### 󠀁[Best free app](https://wordpress.org/support/topic/best-free-app-2/)󠁿

 [thehappiestman](https://profiles.wordpress.org/thehappiestman/) May 9, 2023

5 Star, best one, does the job

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

### 󠀁[Great tool](https://wordpress.org/support/topic/great-tool-1973/)󠁿

 [PHILROW](https://profiles.wordpress.org/phirow/) April 27, 2023

Wonderful

 [ Read all 34 reviews ](https://wordpress.org/support/plugin/megaoptim-image-optimizer/reviews/)

## Contributors & Developers

“MegaOptim Image Optimizer – Optimize Images, Compress Images, Convert to WebP &
AVIF” is open source software. The following people have contributed to this plugin.

Contributors

 *   [ MegaOptim ](https://profiles.wordpress.org/megaoptim/)
 *   [ Darko G. ](https://profiles.wordpress.org/darkog/)

[Translate “MegaOptim Image Optimizer – Optimize Images, Compress Images, Convert to WebP & AVIF” into your language.](https://translate.wordpress.org/projects/wp-plugins/megaoptim-image-optimizer)

### Interested in development?

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

## Changelog

#### 2.0.0

 * Initial release

## Meta

 *  Version **1.4.24**
 *  Last updated **7 days ago**
 *  Active installations **100+**
 *  WordPress version ** 3.6 or higher **
 *  Tested up to **6.6.5**
 *  PHP version ** 5.3 or higher **
 * Tags
 * [AVIF](https://wordpress.org/plugins/tags/avif/)[image optimizer](https://wordpress.org/plugins/tags/image-optimizer/)
   [png to webp](https://wordpress.org/plugins/tags/png-to-webp/)[webp](https://wordpress.org/plugins/tags/webp/)
 *  [Advanced View](https://wordpress.org/plugins/megaoptim-image-optimizer/advanced/)

## Ratings

 5 out of 5 stars.

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

[Your review](https://wordpress.org/support/plugin/megaoptim-image-optimizer/reviews/#new-post)

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

## Contributors

 *   [ MegaOptim ](https://profiles.wordpress.org/megaoptim/)
 *   [ Darko G. ](https://profiles.wordpress.org/darkog/)

## Support

Got something to say? Need help?

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