Strapi plugin logo for Image Converter

Image Converter

Converts media uploads to webp or avif

strapi-plugin-img-convert

A Strapi plugin that enhances the built-in upload functionality by automatically converting uploaded images into formats like WebP and AVIF.

Requirements

  • Strapi V5.x.x
  • Node.js 18.x or higher
  • Access to edit config/plugins.js|ts

NOTE: Strapi 4.x.x is not supported!

Installation

npm install strapi-plugin-img-convert

or

yarn add strapi-plugin-img-convert

Usage

  1. Install the plugin using npm or yarn
  2. Configure the plugin by adding the following to your config/plugins.js file:
1module.exports = {
2  upload: {
3    enabled: true,
4    config: {
5      breakpoints: {
6        xlarge: { breakpoint: 1566, formats: ['webp', 'jpeg', 'png'] },
7        large: { breakpoint: 1280, formats: ['webp', 'jpeg', 'png'] },
8        medium: { breakpoint: 768, formats: ['webp', 'jpeg', 'png'] },
9        small: { breakpoint: 640, formats: ['webp', 'jpeg', 'png'] },
10      },
11    },
12  },
13};

Note: Legacy configuration formats are still supported for backward compatibility.

Support

For issues and feature requests, please create an issue on our GitHub repository.

License

MIT

Install now

npm install strapi-plugin-img-convert

STATS

No GitHub star yet32 weekly downloads

Last updated

14 days ago

Strapi Version

5.29.0 and above

Author

github profile image for d1sxcat
d1sxcat

Useful links

Create your own plugin

Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.