Title: MegaOptim Image Optimizer – Convert to WebP &amp; AVIF, Compress Images Locally
Author: MegaOptim
Published: <strong>5 oktobris, 2018</strong>
Last modified: 15 oktobris, 2026

---

Meklēt spraudņus

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

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

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

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

[Lejupielādēt](https://downloads.wordpress.org/plugin/megaoptim-image-optimizer.3.0.0.zip)

 * [Sīkāka informācija](https://lv.wordpress.org/plugins/megaoptim-image-optimizer/#description)
 * [Atsauksmes](https://lv.wordpress.org/plugins/megaoptim-image-optimizer/#reviews)
 *  [Uzstādīšana](https://lv.wordpress.org/plugins/megaoptim-image-optimizer/#installation)
 * [Attīstība](https://lv.wordpress.org/plugins/megaoptim-image-optimizer/#developers)

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

## Apraksts

MegaOptim optimizes the images of your WordPress site on your own server. It creates
WebP and AVIF copies of your JPEG, PNG and GIF images, serves them to browsers that
support them, and can compress the originals in place. Nothing is uploaded anywhere,
and there are no monthly limits.

#### What it does

 * **WebP and AVIF copies** of every image and thumbnail size, kept next to the 
   original. A copy that would be larger than the original is skipped.
 * **Delivery** through `<picture>` markup or Apache/LiteSpeed rewrite rules, with
   the original as the fallback for older browsers. A CDN URL can be set for the
   copies.
 * **Compression in place** for JPEG and PNG, with three presets: Lossless, Balanced
   and Smaller files. Advanced settings hold separate WebP and AVIF quality, resizing
   of large uploads, metadata and the thumbnail sizes to process.
 * **Backups and restore.** Originals are backed up before they are changed, and
   any image can be restored, one at a time or all at once.
 * **Bulk optimization** of the whole Media Library with one button. It runs in 
   the background, survives closing the page, and shows its progress on the Overview
   and in Activity.
 * **New uploads** are optimized automatically.
 * **Folders outside the Media Library**, such as theme or plugin image folders.
 * **Compare** an original with its optimized version side by side.
 * **WP-CLI:** `wp megaoptim optimize`, `restore`, `status` and `stats`.
 * **Diagnostics** that show which image engines your server offers and what each
   one can do.

#### How images are processed

MegaOptim uses what your server already has: the GD or Imagick PHP extensions, and
command-line encoders such as `cwebp`, `avifenc`, `jpegtran`, `pngquant`, `oxipng`
or `gifsicle` when your host has them installed. The plugin itself contains no executables.
AVIF needs GD or Imagick built with AVIF support, or `avifenc`. Tools  Server diagnostics
shows what is available on your server.

#### MegaOptim Pro

[MegaOptim Pro](https://codeverve.com/product/megaoptim-pro/) is an optional add-
on. It brings its own native engine for Linux (MozJPEG, libwebp, libavif, oxipng,
pngquant, gifsicle), which compresses noticeably better than GD or Imagick and turns
animated GIFs into animated WebP. Its smart quality picks the lowest quality for
each image that still looks the same, measured with SSIMULACRA 2. Pro also optimizes
media offloaded to S3-compatible storage with S3 Uploads or WP Offload Media, and
adds parallel WP-CLI and network-wide tools for multisite. Images are still processed
on your server.

#### Source code

The admin screens are a Vue application. Its source is included in the plugin’s `
admin` folder and is built with `bun install && bun run build`.

## Ekrānuzņēmumi

[⌊Overview: library coverage, space saved and one button to optimize the whole library.⌉⌊
Overview: library coverage, space saved and one button to optimize the whole library
.⌉[

Overview: library coverage, space saved and one button to optimize the whole library.

[⌊Images: every image with its savings and formats, filterable by status and source.⌉⌊
Images: every image with its savings and formats, filterable by status and source
.⌉[

Images: every image with its savings and formats, filterable by status and source.

[⌊Compare an original with its optimized version.⌉⌊Compare an original with its 
optimized version.⌉[

Compare an original with its optimized version.

[⌊Settings: a quality preset, the formats to create and optimization of new uploads.⌉⌊
Settings: a quality preset, the formats to create and optimization of new uploads
.⌉[

Settings: a quality preset, the formats to create and optimization of new uploads.

[⌊Advanced settings: WebP and AVIF quality, resizing and metadata.⌉⌊Advanced settings:
WebP and AVIF quality, resizing and metadata.⌉[

Advanced settings: WebP and AVIF quality, resizing and metadata.

[⌊Activity: background work as it happens.⌉⌊Activity: background work as it happens
.⌉[

Activity: background work as it happens.

[⌊Tools and diagnostics: restore everything, and see what your server can do.⌉⌊Tools
and diagnostics: restore everything, and see what your server can do.⌉[

Tools and diagnostics: restore everything, and see what your server can do.

## Uzstādīšana

 1. Install and activate MegaOptim Image Optimizer.
 2. Open Media  MegaOptim.
 3. On Settings, pick a preset and the formats to create (WebP, AVIF or both). Tools
    Server diagnostics shows what your server can do.
 4. Optimize a few images on the Images screen and compare them with the originals.
 5. Click Optimize library on the Overview to process everything else. New uploads 
    are optimized automatically.

## BUJ

### Do I need an account or an API key?

No. Since version 3.0, everything runs on your server and there is nothing to sign
up for.

### I used MegaOptim with an API key. What happens when I update?

The MegaOptim cloud service has been retired, and version 3.0 replaces it with local
processing. Your settings, optimization history and backups are kept, and the stored
API key is removed. Images that were waiting for the cloud are paused and listed,
so you can review the new settings and resume them locally. Former paying customers
receive MegaOptim Pro free of charge; watch your inbox.

### Is AVIF supported?

Yes, when your server can encode AVIF: GD or Imagick built with AVIF support, or
the `avifenc` tool. Tools  Server diagnostics shows whether it can. MegaOptim Pro
includes its own AVIF encoder.

### Are my original images changed?

WebP and AVIF copies are separate files; the original stays as it is. Compression
does change the original file, so MegaOptim backs it up first (unless you turn backups
off) and you can restore it at any time from the Images screen or with `wp megaoptim
restore`.

### Is compression lossless?

Only with the Lossless preset. Balanced and Smaller files reduce quality slightly
in exchange for smaller files. Use Compare to check the result on a few images before
optimizing the whole library.

### Why was a WebP or AVIF copy not created?

MegaOptim skips a copy that would be larger than the original, which happens with
images that are already well compressed. The Images screen marks these as “original
smaller”. Other reasons are listed in Activity.

### How are WebP and AVIF served to visitors?

With `<picture>` markup (the default), which works on any server and with most caching
plugins, or with rewrite rules for Apache and LiteSpeed, which keep your HTML unchanged.
Browsers that do not support a format get the original.

### My images are stored on S3 or another cloud storage.

The free plugin optimizes files that are on your server and skips offloaded files
with an explanation. MegaOptim Pro optimizes media offloaded with S3 Uploads or 
WP Offload Media and uploads the WebP and AVIF copies with them.

### Does it work with WP-CLI?

Yes. `wp megaoptim optimize --all` optimizes the library, `wp megaoptim optimize--
folder=<path>` a folder, `wp megaoptim restore <id>` restores an image, and `wp 
megaoptim status` shows the queue.

### Does MegaOptim send my images anywhere?

No. Images are processed on your server, and the free plugin does not contact any
service.

## Atsauksmes

![](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/) 20 septembris, 
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/) 31 decembris, 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/) 25 jūlijs, 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/) 20 jūlijs, 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/) 9 maijs, 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/) 27 aprīlis, 2023

Wonderful

 [ Lasīt 34 atsauksmes ](https://wordpress.org/support/plugin/megaoptim-image-optimizer/reviews/)

## Autori un izstrādātāji

“MegaOptim Image Optimizer – Convert to WebP & AVIF, Compress Images Locally” ir
atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

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

[Tulkot “MegaOptim Image Optimizer – Convert to WebP & AVIF, Compress Images Locally&#8221 savā valodā.](https://translate.wordpress.org/projects/wp-plugins/megaoptim-image-optimizer)

### Vai jūs interesē attīstība?

[Pārlūkojiet kodu](https://plugins.trac.wordpress.org/browser/megaoptim-image-optimizer/),
apmeklējiet[ SVN krātuvi ](https://plugins.svn.wordpress.org/megaoptim-image-optimizer/)
vai abonējiet[ attīstības žurnālu](https://plugins.trac.wordpress.org/log/megaoptim-image-optimizer/),
ko izveidojis [RSS](https://plugins.trac.wordpress.org/log/megaoptim-image-optimizer/?limit=100&mode=stop_on_copy&format=rss).

## Izmaiņu žurnāls

#### 3.0.0

 * All optimization now runs on your server. The cloud API, API keys and image credits
   are gone.
 * A redesigned admin: Overview, Images, Settings, Activity and Tools, with one 
   Optimize action for compression and WebP/AVIF.
 * Settings presets (Lossless, Balanced, Smaller files) with separate WebP and AVIF
   quality.
 * Better JPEG output with Imagick and GD: progressive encoding, optimized Huffman
   tables, and never a higher quality than the source.
 * Originals are backed up before every change, for media and folder images, and
   restore no longer re-optimizes the restored file.
 * Native encoders keep a photo’s embedded color profile, so photos from cameras
   and editors no longer fall back to Imagick.
 * A new background queue: atomic claims, two images at a time, and progress that
   continues when the page is closed.
 * WebP and AVIF copies that would be larger than the original are recorded as such
   instead of being retried.
 * Offloaded media is detected and skipped with an explanation instead of failing.
 * WP-CLI: `wp megaoptim optimize`, `restore` and `status`.
 * The plugin no longer contains executables; it uses GD, Imagick and tools installed
   on the server.
 * Upgrades from cloud versions keep settings, history and backups, remove the stored
   API key and pause pending cloud work for review.

#### 2.0.2

 * File System view: Convert and Compress now work on folders and single files, 
   with live progress.
 * Fix: Convert no longer drops thumbnail siblings. Every thumbnail size now produces
   its own WebP and AVIF file.
 * Fix: forced re-convert kept the freshly converted files instead of wiping them
   at the end of the run.
 * Polished folder modal (mode-aware hero, force re-process toggle, cancel-during-
   run, per-file failure list).

#### 2.0.0

 * Complete refactor of the plugin (Vue 3 admin, modern PHP architecture, new conversion
   engine for WebP/AVIF, File System view, queue monitor, WP-CLI commands).
 * Backwards compatible: legacy v1.x mode remains available and existing settings
   and attachment data are migrated in the background.

Older versions are listed in changelog.txt.

## Meta

 *  Versija **3.0.0**
 *  Pēdējo reizi atjaunots: **pirms 10 stundas**
 *  Aktīvās instalācijas: **100+**
 *  WordPress versija ** 5.8 vai jaunāka **
 *  Pārbaudīts līdz: **7.1.3**
 *  PHP versija ** 7.4 vai jaunāka **
 *  Valoda
 * [English (US)](https://wordpress.org/plugins/megaoptim-image-optimizer/)
 * Birkas:
 * [AVIF](https://lv.wordpress.org/plugins/tags/avif/)[compress images](https://lv.wordpress.org/plugins/tags/compress-images/)
   [image optimizer](https://lv.wordpress.org/plugins/tags/image-optimizer/)[optimize images](https://lv.wordpress.org/plugins/tags/optimize-images/)
   [webp](https://lv.wordpress.org/plugins/tags/webp/)
 *  [Papildu skats](https://lv.wordpress.org/plugins/megaoptim-image-optimizer/advanced/)

## Vērtējumi

 5 no 5 zvaigznēm.

 *  [  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)

[Skatīt visasatsauksmes](https://wordpress.org/support/plugin/megaoptim-image-optimizer/reviews/)

## Līdzdalībnieki

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

## Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

 [Skatīt atbalsta forumu](https://wordpress.org/support/plugin/megaoptim-image-optimizer/)