Title: Image Ninja &#8211; Convert Images to WebP &amp; AVIF on Upload
Author: Nitin Singh
Published: <strong>28 พฤศจิกายน 2024</strong>
Last modified: 24 พฤษภาคม 2025

---

Search plugins

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

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

# Image Ninja – Convert Images to WebP & AVIF on Upload

 By [Nitin Singh](https://profiles.wordpress.org/nitinkrsing/)

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

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

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

## Description

**Image Ninja – Convert Images to WebP & AVIF on Upload** is a lightweight WordPress
plugin that automatically converts JPEG and PNG images to modern WebP and AVIF formats
upon upload. The plugin improves website performance by optimizing image file sizes
without compromising quality, leading to faster page loading times.

### Key Features

 * Automatically converts JPEG and PNG images to WebP and AVIF formats during upload.
 * Allows configuration of WebP and AVIF image quality in the settings.
 * Enhances website performance by reducing image file sizes.
 * Simple settings interface under `Settings > Media` for easy customization.
 * Lightweight and developer-friendly codebase.

This plugin is ideal for website owners looking to improve load times and optimize
image delivery, especially on mobile devices and slow connections.

### Why WebP?

WebP is a modern image format developed by Google that provides both lossy and lossless
compression for images on the web. Here are some benefits of using WebP:

 * **Smaller File Size**: WebP images can be up to 30% smaller than JPEGs and PNGs
   with no noticeable loss in quality, resulting in faster page load times.
 * **Transparency and Animation**: WebP supports transparent backgrounds like PNG
   and animated images like GIF, making it a versatile choice.
 * **Improved Compression**: WebP offers better compression algorithms compared 
   to traditional formats, allowing for high-quality images with lower storage requirements.

### Why AVIF?

AVIF (AV1 Image File Format) is a cutting-edge image format derived from the AV1
video codec, offering even better compression than WebP. Here’s why AVIF is beneficial:

 * **High Compression Efficiency**: AVIF can reduce image sizes by up to 50% compared
   to JPEG, while maintaining similar or even higher visual quality.
 * **HDR Support**: AVIF supports High Dynamic Range (HDR), allowing for more vibrant
   and detailed images, especially on modern displays.
 * **Advanced Features**: It includes support for transparency, animation, and a
   wider color gamut, making it suitable for various types of web content.

### License

This plugin is licensed under the GPLv2 or later license.

## Screenshots

 * [[
 * **Settings page**: Configure the quality settings for WebP and AVIF formats.
 * [[
 * **Image Upload Example**: The original image uploaded, with automatically generated
   WebP and AVIF versions.

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/image-ninja` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Navigate to `Settings > Media` to choose the image format and configure the image
    quality settings for WebP and AVIF formats.

## FAQ

### Why should I use WebP and AVIF image formats?

WebP and AVIF are modern image formats that offer superior compression compared 
to traditional JPEG and PNG formats, resulting in smaller file sizes and faster 
loading times without noticeable quality loss.

### Will my original images be replaced?

No, the original JPEG or PNG images remain in the media library. The plugin creates
additional WebP and AVIF versions that can be used by other optimization plugins
or custom themes.

### Does this plugin work on shared hosting?

Yes, the plugin should work on most shared hosting environments. However, AVIF support
requires a server with the appropriate library installed (e.g., `libavif`). If AVIF
conversion is unavailable, the plugin will still convert images to WebP.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Image Ninja – Convert Images to WebP & AVIF on Upload” is open source software.
The following people have contributed to this plugin.

Contributors

 *   [ Nitin Singh ](https://profiles.wordpress.org/nitinkrsing/)

[Translate “Image Ninja – Convert Images to WebP & AVIF on Upload” into your language.](https://translate.wordpress.org/projects/wp-plugins/image-ninja)

### Interested in development?

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

## Changelog

#### 1.0.0

 * Initial release.
 * Convert JPEG and PNG images to WebP and AVIF formats during upload.
 * Added settings for adjusting the quality of WebP and AVIF conversions.

## Meta

 *  Version **1.0.1**
 *  Last updated **11 เดือน ago**
 *  Active installations **50+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/image-ninja/)
 * Tags
 * [AVIF](https://th.wordpress.org/plugins/tags/avif/)[image conversion](https://th.wordpress.org/plugins/tags/image-conversion/)
   [media](https://th.wordpress.org/plugins/tags/media/)[optimize images](https://th.wordpress.org/plugins/tags/optimize-images/)
   [webp](https://th.wordpress.org/plugins/tags/webp/)
 *  [Advanced View](https://th.wordpress.org/plugins/image-ninja/advanced/)

## Ratings

No reviews have been submitted yet.

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

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

## Contributors

 *   [ Nitin Singh ](https://profiles.wordpress.org/nitinkrsing/)

## Support

Issues resolved in last two months:

     0 out of 1

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

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://paypal.me/nitinkrsing)