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-convertor
yarn add strapi-plugin-img-convertUsage
- Install the plugin using npm or yarn
- Configure the plugin by adding the following to your
config/plugins.jsfile:
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
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.