Title: Opti Ninja Image Optimizer – Compress Images, WebP &amp; AVIF
Author: optininja
Published: <strong>September 25, 2026</strong>
Last modified: September 25, 2026

---

Search plugins

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

![](https://ps.w.org/opti-ninja-image-optimizer/assets/icon-256x256.gif?rev=3712959)

# Opti Ninja Image Optimizer – Compress Images, WebP & AVIF

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

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

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

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

## Description

Opti Ninja Image Optimizer helps you optimize and compress WordPress images directly
from your Media Library. Reduce image file sizes, convert images to WebP and AVIF,
improve page speed, and boost Core Web Vitals without changing image URLs, filenames,
alt text, or attachment metadata.

Connect your WordPress site to your opti.ninja account and optimize JPEG, PNG, WebP,
AVIF, and HEIC images individually or in bulk.

#### Why use Opti Ninja?

 * Image optimization for WordPress
 * Image compression for JPEG, PNG, WebP, AVIF, and HEIC
 * Bulk image optimization for your Media Library
 * WebP converter and AVIF converter
 * Reduce image file sizes
 * Improve page speed and Core Web Vitals
 * Automatic image optimization for new uploads
 * Background image optimization jobs
 * Optional backups with one-click restore
 * Preserve image URLs, filenames, alt text, and metadata

#### Features

 * Optimize the full-size image and selected WordPress-generated image size variants
 * Bulk image optimization for your entire Media Library with progress tracking,
   live log, pause, resume, and cancel
 * Background image optimization processing — leave the page and optimization continues
   automatically
 * Filter bulk jobs by upload date range, minimum file size, and maximum number 
   of images
 * Automatically optimize and compress newly uploaded images in the background, 
   during upload, or manually
 * Compress JPEG, PNG, WebP, AVIF, and HEIC images with configurable quality settings
 * Convert image formats to WebP, AVIF, HEIC, JPEG, and PNG
 * Generate additional output formats alongside the optimized original image
 * Progressive JPEG and metadata stripping options
 * Choose which image sizes to optimize, including full size, thumbnail, medium,
   large, and registered theme sizes
 * Optional backup of original image files before replacement
 * One-click restore of original images
 * Display image savings per file, including percentage and file size reduction
 * Preserve image URLs, filenames, alt text, titles, and attachment metadata
 * Connect using your opti.ninja account credentials or API key
 * View token balance, account quota, and optimization capacity estimates
 * Optimize images directly from the Media Library list view, grid view, and attachment
   sidebar
 * Reset optimization status metadata without changing optimized files on disk

#### Supported image formats

JPEG, PNG, WebP, AVIF, and HEIC/HEIF.

#### Requirements

 * WordPress 6.6 or later
 * PHP 8.0 or later
 * A free or paid opti.ninja account

#### Token usage

Each WordPress image (attachment) uses one token from your opti.ninja account. That
token covers all selected image size variants and any additional output formats 
generated for that image.

#### External services

This plugin communicates with the opti.ninja API at https://opti.ninja/api/v1 and
the public API at https://opti.ninja/api/public.

Depending on how you use the plugin, the following data may be sent:

 * Image optimization (POST /optimize-sync) — image file data is sent for image 
   compression and optional format conversion. Images are processed on opti.ninja
   servers and are not stored permanently.
 * Account connection (POST /connections/login, POST /connections/api-key, DELETE/
   connections/) — your opti.ninja credentials or API key, plus basic site metadata
   such as site name, site URL, WordPress version, and plugin version.
 * Quota information (GET /jobs/quota) — retrieves token balance, quota information,
   and subscription details.
 * Token packages (GET /token-packages) — retrieves available token packages for
   purchase suggestions inside the plugin.

See the opti.ninja privacy policy and terms of service:

 * https://opti.ninja/privacy.html
 * https://opti.ninja/terms-of-service.html

#### Backup folder

When backups are enabled, original image files are moved to:

wp-content/uploads/Opti.ninja Backups/

The original uploads folder structure is preserved before optimized files replace
the originals.

## Screenshots

[⌊Settings page with account connection, image optimization settings, and backup
options⌉⌊Settings page with account connection, image optimization settings, and
backup options⌉[

Settings page with account connection, image optimization settings, and backup options

[⌊Settings for automatic image optimisation and backup structure⌉⌊Settings for automatic
image optimisation and backup structure⌉[

Settings for automatic image optimisation and backup structure

[⌊Media Library optimization column with image savings and action buttons⌉⌊Media
Library optimization column with image savings and action buttons⌉[

Media Library optimization column with image savings and action buttons

[⌊Optimisation details for each image site version⌉⌊Optimisation details for each
image site version⌉[

Optimisation details for each image site version

[⌊Bulk image optimization page with filters, progress tracking, and live log⌉⌊Bulk
image optimization page with filters, progress tracking, and live log⌉[

Bulk image optimization page with filters, progress tracking, and live log

[⌊Output formats tab with compression controls for JPEG, PNG, WebP, and AVIF⌉⌊Output
formats tab with compression controls for JPEG, PNG, WebP, and AVIF⌉[

Output formats tab with compression controls for JPEG, PNG, WebP, and AVIF

[⌊Bulk optimisation progress and log⌉⌊Bulk optimisation progress and log⌉[

Bulk optimisation progress and log

## Installation

 1. Upload the plugin folder to /wp-content/plugins/ or install through the WordPress
    plugins screen.
 2. Activate the plugin through the Plugins screen.
 3. Go to Settings  Opti Ninja and connect your opti.ninja account using your login
    credentials or API key.
 4. Configure image compression settings, output formats, and image size selections.
 5. Optimize individual images from Media  Library or run Media  Bulk Optimize for 
    bulk image optimization.

## FAQ

### How do I connect my account?

Open Settings  Opti Ninja and log in using your opti.ninja username and password.
Alternatively, use an API key from your opti.ninja dashboard. API keys start with
optn_.

### What is image optimization?

Image optimization reduces image file sizes while maintaining visual quality. Smaller
images load faster, improve page speed, and can help improve Core Web Vitals scores.

### How do I compress images in WordPress?

Opti Ninja compresses JPEG, PNG, WebP, AVIF, and HEIC images directly from your 
WordPress Media Library.

### Does image compression improve Core Web Vitals?

Yes. Reducing image file sizes can improve loading performance and contribute to
better Core Web Vitals metrics.

### Does this change image URLs or filenames?

No. Optimized images replace the existing files at the same location. Image URLs,
filenames, attachment metadata, alt text, and titles remain unchanged.

### Can I convert images to WebP or AVIF?

Yes. You can automatically generate WebP and AVIF versions of your images. Additional
output formats are stored alongside the optimized original image.

### Can I restore original images?

Yes. If backups were enabled during optimization, click Restore Original to recover
the original image files.

### How does bulk image optimization work?

Go to Media  Bulk Optimize, configure your optimization settings, and start the 
job. Bulk image optimization runs in the background and continues even if you leave
the page.

### What happens when I uninstall the plugin?

Plugin settings and optimization metadata are removed. Optimized image files and
backups remain on disk unless manually deleted.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

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

[Translate “Opti Ninja Image Optimizer – Compress Images, WebP & AVIF” into your language.](https://translate.wordpress.org/projects/wp-plugins/opti-ninja-image-optimizer)

### Interested in development?

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

## Changelog

#### 1.0.1

 * Declare compatibility with WordPress 7.1

#### 1.0.0

 * Initial release
 * Media Library image optimization with savings display, optimize, and restore 
   actions
 * Bulk image optimization with background processing, progress tracking, live log,
   pause, resume, and cancel
 * Automatic image optimization for new uploads
 * Compression settings for JPEG, PNG, WebP, and AVIF
 * Progressive JPEG and metadata stripping options
 * Optional additional output formats including WebP, AVIF, HEIC, JPEG, and PNG
 * Configurable image size selection
 * Optional backup of original image files with one-click restore
 * Account connection using opti.ninja login credentials or API key
 * Token balance, quota information, and optimization capacity estimates
 * Media Library integration in list view, grid view, and attachment sidebar
 * Optimization status reset and troubleshooting tools

## Meta

 *  Version **1.0.1**
 *  Last updated **2 days ago**
 *  Active installations **10+**
 *  WordPress version ** 6.6 or higher **
 *  Tested up to **7.1.2**
 *  PHP version ** 8.0 or higher **
 * Tags
 * [AVIF](https://wordpress.org/plugins/tags/avif/)[compress images](https://wordpress.org/plugins/tags/compress-images/)
   [image compression](https://wordpress.org/plugins/tags/image-compression/)[image optimizer](https://wordpress.org/plugins/tags/image-optimizer/)
   [webp](https://wordpress.org/plugins/tags/webp/)
 *  [Advanced View](https://wordpress.org/plugins/opti-ninja-image-optimizer/advanced/)

## Ratings

No reviews have been submitted yet.

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

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

## Contributors

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

## Support

Got something to say? Need help?

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