Strapi 5 plugin that automatically converts uploaded images (JPEG, PNG, GIF, BMP, TIFF, HEIC) to WebP format using sharp. Provides an admin UI for retroactive conversion of existing media with bulk processing, progress tracking, storage savings reports, and migration helpers for S3 and database URL updates. Current version 1.0.0, requires Strapi 5.x and Node ≥18. Differentiator: tight integration with Strapi's upload lifecycle and admin panel, no frontend changes needed, supports S3 migration and URL rewriting.
npm install strapi-plugin-media-webp-convertorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation and basic configuration to auto-convert uploads to WebP in Strapi 5.
After converting existing images, go to Settings → Media WebP & migration → URL migration to rewrite hard-coded image URLs in rich text fields.
When converting existing images, check the 'Lossless mode for PNGs' checkbox in the admin UI to preserve pixel-perfect transparency.
Run the conversion multiple times. Already converted files will be skipped.
Install a newer version of libstdc++: sudo apt-get update && sudo apt-get install libstdc++6
Ensure Strapi 5.x is installed: npm install @strapi/strapi@^5.0.0
Install sharp: npm install sharp@>=0.30.0